DSB/Messages: Difference between revisions

From DmWiki
Jump to navigationJump to search
Sophia (talk | contribs)
New page: 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_DEACTIVA...
 
No edit summary
Line 9: Line 9:


Define new messages with <b>dsb_add_msgtype</b>.
Define new messages with <b>dsb_add_msgtype</b>.
[[Category:DSB|Messages]]

Revision as of 14:03, 9 May 2011

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.
  • 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.