Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-14-2003, 11:47 PM
ApeHex ApeHex is offline
Registered User
Join Date: Jun 2003
Location: USA
Posts: 72
ApeHex is on a distinguished road
Send a message via AIM to ApeHex
triggeraction stuff

ok, im having some trouble with triggeraction
the following code is in an npc that is sent to the players weapons
NPC Code:

if (actionserverside){
// Damage taking.
if (strequals(#p(0),0)){
this.damPower=strtofloat(#p(1));
this.damType=strtofloat(#p(2));
this.finalPower=int(this.damPower+this.damType-this.playArmor);
this.curHP-=this.finalPower;
setcharprop #c,OUCH! #v(this.curHP)/#v(this.maxHP).;
}
}


the next code is in a seperate npc
NPC Code:

if (playerchats&&startswith(/hurt,#c)){
triggeraction playerx,playery,serverside,0,1,1;
}


it doesnt seem to work for me ;\
could someone give me the correct way to use triggeraction (if thats wrong)
__________________
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:08 PM.


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