Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: limeyman1992 on Sun 27/06/2010 00:51:30

Title: Look queery [SOLVED]
Post by: limeyman1992 on Sun 27/06/2010 00:51:30
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?
Title: Re: Look queery
Post by: 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.
Title: Re: Look queery
Post by: limeyman1992 on Sun 27/06/2010 01:15:29
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
Title: Re: Look queery
Post by: Khris on Sun 27/06/2010 02:47:55
Move it up in the list; it's supposed to be above "Global.asc".
(Right-click the module, then select "Move up".)
Title: Re: Look queery
Post by: Crimson Wizard on Sun 27/06/2010 15:33:51
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 ;)