Behaviors & Transitions list

Behaviors are the basic unit of specifying how enemies act in the world. They have some rules that determine how they are executed.

In this section, you will find all Behaviors that can be used to mod monster in XML.

Behaviors:


Transitions:

  • afterTime: Transition immediately after the specified number of seconds.
  • hitpointsLessThan: Transition when the hitpoints of the creature fall below the specified proportion (i.e. 0.5 is 50%).
  • playerWithin: A player is within the specified number of squares. (distance|number of players)
  • noPlayerWithin: There is no player within the specified number of squares.
  • noneExist: There are no objects of the specified type in this dungeon
  • exist: There are objects of the specified type in this dungeon
  • random: Transition with specified probability on each tick (e.g. random=”.05” has a 5% probability to take this transition every .2 seconds)
  • playerSays: Transition when a player within 30 squares says the given phrase (ignoring case and whitespace)
  • hasTag: Transition if this tag is set
  • noTag: Transition if this tag is not set
  • onTile: Transition if on a certain tile (<Transition onTile="tile1, tile2, tile3">StatetoTransition</Transition>

Leave feedback

Is something described here not clear or do you have ideas on how to improve the documentation? Let us know!