Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Triggeraction and replaceani (https://forums.graalonline.com/forums/showthread.php?t=17624)

T3CK 11-23-2001 05:10 AM

Triggeraction and replaceani
 
I completely forgot, could someone give me an example script of each of these commands? Please, thank you.

mikepg 11-23-2001 05:32 AM

k...
 
for replaceani

if (playerenters) {replaceani walk,skip_like_a_homo;
}

that replaces the walking animation with a gani that you named skip_like_a_homo.gani

that makes it so if you go to walk, or use setani walk, it will show skip blah blah blah.

as for trigger action, it works like this

//NPC 1 when it is used as a weapon
if (weaponfired) {
triggeraction x,y,test(<--this is the action),param;
}

//NPC 2 (which is on the x,y you supplied
if (actiontest) {message Trigger action works...AMAZING!;
}

in order for it to work, the NPC must be on the right coordinates, and the action needs to correspond(sp) with the a flag in the NPC on those coordinates
so if the action is skip, you'd add
if (actionskip) {
}

Then, it should work. Im not very good with these, but that is how it works.

T3CK 11-24-2001 01:45 AM

Thanks!


All times are GMT +2. The time now is 09:53 AM.

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