Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scripting Question (https://forums.graalonline.com/forums/showthread.php?t=59941)

raiden0899 07-11-2005 10:47 PM

Scripting Question
 
Can anyone explain the triggeraction command and #p() to me? :confused:

Skyld 07-11-2005 11:33 PM

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".

Fry 07-11-2005 11:47 PM

What Skyld said and take a look at the newfeatures*.txt files in your Graal folder, they contain lots of information.

raiden0899 07-12-2005 12:02 AM

Thanks for the explanation, Skyld. :D

Skyld 07-12-2005 12:21 AM

Quote:

Originally Posted by raiden0899
Thanks for the explanation, Skyld. :D

Your welcome.
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.