[code]function hFruitTree_Interact()
{
if (oFruit.Visible == true) Display("There is no need to climb the tree.");
else {
Display("There is no need to climb the tree. Besides, there isn't any more ripe fruit to pick anyway.");
}
}[/code]
Try this. Also, make sure you use the right amount of equal signs:
= sets, == checks
For example:
[code]if (oFruit.Visible == true) Display("I'm checking whether Fruit is visible with two equal signs");
//player enter room, or whatever
oFruit.Visible = false; //Here I'm setting a variable because it's just one equal sign.[/code]
Notice also in my top code, you can shorten this
[code]if oFruit.Visible = true; {
Display("There is no need to climb the tree."); }[/code]
into this
[code]if (oFruit.Visible = true) Display("There is no need to climb the tree.");[/code]
Because you don't need the extra { } if there's only one expression after the if statement.