Thread: triggeraction
View Single Post
  #2  
Old 03-23-2002, 01:26 PM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
One NPC gives the command:

NPC Code:
 triggeraction <wherex>,<wherey>,<name>,<parameters>,(extraparam)  ,(extraparam); 



and any npc on the spot (wherex,wherey) with this:
NPC Code:

if (action<name>) {
stuff();
}


can take the parameters listed and use them ( #p(0) - #p(n) )

Hope that helps...i'm trying to get a little help aswell on the topic :P
[edit] Example being that you want to use a key to open a door, so the key would have the trigger action with wherex and wherey being in front of the player (playerx+1.5,playery+1), and the door would have the action<name>. The name also has to be the same throughout, and the parameters can be different depending on what you want to do with the triggeraction. (is so bored...so keeps watching the forums)[/edit]
Reply With Quote