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 11-23-2001, 05:10 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Triggeraction and replaceani

I completely forgot, could someone give me an example script of each of these commands? Please, thank you.
Reply With Quote
  #2  
Old 11-23-2001, 05:32 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
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.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #3  
Old 11-24-2001, 01:45 AM
T3CK T3CK is offline
Banned
Join Date: Aug 2001
Location: Atlanta, GA
Posts: 557
T3CK is on a distinguished road
Send a message via AIM to T3CK Send a message via MSN to T3CK Send a message via Yahoo to T3CK
Thanks!
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 12:24 AM.


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