Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
()delHpDownTrigger(0.5, "onHPDecrease");


Associates a listener with a named entity property. Whenever that field changes the specified user event is triggered. Valid property names are:

  • state
  • param1
  • param2

The name of the entity cannot be listened to because it cannot change. Several listeners (even with the same parameters) can be associated to each property. 

Arguments: s(Name),s(Property),f(user_event_n)->


Namethe name of the named entity to listen to
Propertythe property of the named entity to listen to
user_event_nthe user event to trigger
Code Block
 ()addNamedEventListener("Invasion", "state", 6);