![]() |
Scripting Question
Can anyone explain the triggeraction command and #p() to me? :confused:
|
triggeraction x,y,name,params...;
Triggers actionname on x and y with params 0 and up. triggeraction 30,30,lolname,bbq,plz; Would result in: if (actionlolname) in an npc at 30,30, with #p(0) being "bbq", and #p(1) being "plz". Action names beginning with "server" (i.e. "serverside" or "serverfire") are automatically sent to the npcserver. triggeraction 0,0,serverside,-System,test; Would result in: if (actionserverside) on the serverside of weapon -System, with #p(0) being "test". |
What Skyld said and take a look at the newfeatures*.txt files in your Graal folder, they contain lots of information.
|
Thanks for the explanation, Skyld. :D
|
Quote:
If you are interested in a practical example, I know Stefan's hitpoint system tutorial uses both triggeraction and projectile-based actions. It can be found in the NPC Scripting forum's advice thread (that can be found here). Also, as Fry said, newfeatures documents contain the updates and fixes, and are full of useful information. |
| All times are GMT +2. The time now is 02:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.