Look queery [SOLVED]

Started by limeyman1992, Sun 27/06/2010 00:51:30

Previous topic - Next topic

limeyman1992

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?

GarageGothic


limeyman1992

Quote from: GarageGothic on Sun 27/06/2010 01:04:58
The MultiResponse module should help you do that.
I tried it but it says that "Multi" Is an undefined token

Khris

Move it up in the list; it's supposed to be above "Global.asc".
(Right-click the module, then select "Move up".)

Crimson Wizard

I will mention how to do this most straight and dumb way just in case you wonder.

Code: ags

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 ;)

SMF spam blocked by CleanTalk