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"