View Single Post
  #10  
Old 03-17-2002, 11:46 PM
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
well

Triggeraction works just like a built in call flag (like if (playerenters)), except, it's only called when it is activated by an NPC. The only way to activate it is for an NPC to use triggeraction other'sx,other'sy,<actionhere>,#g;

supposing the NPC you want triggered is on other'sx,other'sy, it would call <actionhere>, and send the message that #p(0)=#g (or your guild name, let's say it's happy clan, the point for the NPC is 33,33 and the action is called "dostart")

you'd write in the Weapon NPC
NPC Code:

if (weaponfired) {
triggeraction 33.25,33.25,dostart,#g;
}



in the other NPC

NPC Code:

if (actiondostart) {
message I have been triggered by a member of #p(0);
}



The reason the triggering point is 33.25,33.25, Is because the action MUST be triggered on a visible spot on the NPC (part of the image that is NOT transparent)

For more info on triggeraction, I suggest you open up newfeatures2001.txt that is in your graal folder, and search "triggeraction"
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote