Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-23-2002, 12:54 PM
slick_soul slick_soul is offline
Registered User
Join Date: Sep 2001
Location: Florida
Posts: 484
slick_soul is on a distinguished road
triggeraction

What is triggeraction x,y,action,params;?
and what can it be used for?
Can someone give an example to on how to use it?
__________________
Lopar:Excuse me ol chap your pants are on fire
Chap: Whay thank you for noticing sir , would you like to come over to my house for some tea and crumpets?
Lopar:umm well Like i said your pants are on fire
Chap: Oh yes i forgot AHHHHHH
Reply With Quote
  #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
  #3  
Old 03-23-2002, 08:38 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
and btw. nearly every new command (and what it's for) is listed in the newfeatures and if this doesn't help you could have searched for the word triggeraction because there were many threads about this...
__________________
No Webhost at the moment
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.