Difference between revisions of "DSB/Messages"

From DmWiki
Jump to navigationJump to search
m
Line 4: Line 4:
 
* Toggle (M_TOGGLE) - Enables a disabled instance and disables an enabled one.
 
* Toggle (M_TOGGLE) - Enables a disabled instance and disables an enabled one.
 
* Next Tick (M_NEXTTICK) - Tells instances to proceed. Makes doors continue to open and close, monster generators re-enable, etc.
 
* Next Tick (M_NEXTTICK) - Tells instances to proceed. Makes doors continue to open and close, monster generators re-enable, etc.
 +
* Expire (M_EXPIRE) - Triggers an <b>on_expire</b> event, or simply destroys the instance if there is no such event.
 
* Clean Up (M_CLEANUP) - Deletes the targeted instance from the target list of all instances in the dungeon.
 
* Clean Up (M_CLEANUP) - Deletes the targeted instance from the target list of all instances in the dungeon.
 
* Reset Counter (M_RESET) - Sets a counter back to its default value.
 
* Reset Counter (M_RESET) - Sets a counter back to its default value.

Revision as of 22:52, 13 November 2012

Base messages as defined by DSB and used in ESB are the following:

  • Activate (M_ACTIVATE) - Enables instances, opens pits, closes doors, triggers generators, etc.
  • Deactivate (M_DEACTIVATE) - Disables instances, closes pits, opens doors, etc.
  • Toggle (M_TOGGLE) - Enables a disabled instance and disables an enabled one.
  • Next Tick (M_NEXTTICK) - Tells instances to proceed. Makes doors continue to open and close, monster generators re-enable, etc.
  • Expire (M_EXPIRE) - Triggers an on_expire event, or simply destroys the instance if there is no such event.
  • Clean Up (M_CLEANUP) - Deletes the targeted instance from the target list of all instances in the dungeon.
  • Reset Counter (M_RESET) - Sets a counter back to its default value.
  • Destroy (M_DESTROY) - Removes the instance from the dungeon. This can cause Lua errors if triggers etc. target it and it isn't sent a Clean Up first.

Define new messages with dsb_add_msgtype.