Hey! I try to make interaction: If current inventory use on hotspot = current action
Here is my code:
if (player.ActiveInventory == iLamp)
Wait(140);
player.ChangeRoom (49) ;
I remember it was work before, but now if i use ANY inventory item player change room! Why???
Braces. Try:
if (player.ActiveInventory == iLamp) {
Wait(140);
player.ChangeRoom (49);
}
As it is, only Wait(140); is associated with the iLamp condition, the Change room should run with anything.
Braces...so simple.
Thanks to "Ashen's hot line!" :)
SOLVED