In a few games I've seen that with some objects/hotspots when you use the 'look' function on them more than once a different message will appear each time. Can someone show me how to do this?
The MultiResponse module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27947.0) should help you do that.
Quote from: GarageGothic on Sun 27/06/2010 01:04:58
The MultiResponse module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27947.0) should help you do that.
I tried it but it says that "Multi" Is an undefined token
Move it up in the list; it's supposed to be above "Global.asc".
(Right-click the module, then select "Move up".)
I will mention how to do this most straight and dumb way just in case you wonder.
int times;
function oMyObject_LookAt()
{
if (times == 0) cCharacter.Say("First time!");
else if (times == 1) cCharacter.Say("Second time!");
.... etc etc
times++;
}
I guess using aforementioned module will be simplier ;)