by ACWraith
A library for handling what happens and when. (Events and triggers.) [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://ACWraith.Events##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 4
Date added: Nov 4 2006
Last updated: Jul 29 2009
5 fans

[Extras] [Bonus features]

This library sacrifices some speed to store dynamic data on events and triggers.

The bulk of this library has been used in PathWrath. However, limited support for event arguments has also been added. For example, if you have an event which changes an attribute then you can send in the value to change it by. However, a source object can only have one argument per event/trigger pair.

To Use:

  • Create an events_Holder to keep track of what things can be triggered to perform events, what things can be triggered to add events, and what things can be triggered to remove events.
  • Create events with events_Event. (Mainly, you derive a type and define what Perform() does.)
  • Create triggers with events_Trigger and call their Triggered() procs in your code where you want events activated, added, or removed.