CreateParameter(string text)
Creates a parameter to exchange information between screens and objects. SearchParameter is used to search a paramater created with this function.
function Main() { //-Box
if(!SearchParameter("BoxDestroyed"))
{
BoxDestroyed.Hide();
Box=CreateObject("Box",185,280);
Box.description="A wooden box, It seems there is something under it.";
Box.use=useBox;
}else{
BoxDestroyed.Show();
Stairs.description="I'm afraid, It's dark";
Stairs.DoorTo("underground");
} } function VampireCollideBox()
{
DestroyObject(Box);
BoxDestroyed.Show();
Vampire.CollisionWith(null);
CreateParameter("BoxDestroyed");
Stairs.DoorTo("underground");
}
Get the latest version here.