[Crossfire-wiki] [Crossfire DokuWiki] page changed: server_plugin

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Apr 15 12:48:57 CDT 2012


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2012/04/15 12:48
User        : ryo
Edit Summary: update

@@ -62,15 +62,20 @@
  Archetype: event_apply
  
  This event is generated whenever the object is applied or unapplied.
  
- ==== Attack ====
+ 
+ ==== Attacked ====
  Archetype: event_attack
  
- This event is used in three cases:
-   * bound to a (hand) weapon, it is triggered each time the weapon is used to slay something; this can typically be used to generate special effects when you hit a monster. In this case, "op" is the weapon, "activator" the player and "third" the monster attacked. Returning a non-zero value cancels the attack
-   * bound to a monster, it is triggered when the monster is attacked. In this case, "op" is the monster, "activator" is the player, "third" is the weapon (can be equal to "activator"). Returning a non-zero value cancels the attack
-   * bound to an arrow, it is triggered when the arrow hits something. "op" is the arrow, "hitter" what really hits (arrow can have stuff inside), "third" is the victim
+ Bound to an object, it is triggered when the object is attacked (with a weapon or a spell). In this case, "op" is the object, "activator" is what hits the item, "third" is the weapon or spell used (can be equal to "activator"). Returning a non-zero value cancels the attack.
+ 
+ ==== Attacks ====
+ Archetype: event_attacks
+ 
+ This event is used in two cases:
+   * bound to a (hand) weapon, it is triggered each time the weapon is used by a player to attack something; this can typically be used to generate special effects when you hit a monster. In this case, "op" is the weapon, "activator" the player and "third" the item attacked. Returning a non-zero value cancels the attack
+   * bound to an arrow, it is triggered when the arrow hits something. "op" is the arrow, "activator" what really hits (arrow can have stuff inside), "third" is the victim. Returning a non-zero value cancels the attack
  
  ==== Close ====
  Archetype: event_close
  


IP-Address  : 82.236.87.204
Old Revision: http://wiki.metalforge.net/doku.php/server_plugin?rev=1334487852
New Revision: http://wiki.metalforge.net/doku.php/server_plugin

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/



More information about the crossfire-wiki mailing list