by Johan411
Create looping events, With just a few lines of code!!!! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Johan411.JEvents##version=4

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


Version 2.50
Date added: Sep 26 2011
Last updated: Oct 6 2011
2 fans
Version 2.50

The demo included within this library will show you how to create 8 different types of events!

Which include;
Advertisement Event
random reward Event
Random world speaking
Random Movement for movable atom's
And a day/night time Event
Apple Effect Event
Random door opening and closing
And a escalator with 2 switches to change the direction of the stairs.

For documentation please refer to and Event

I created this for personal use but i decided that it seemed worthy of a public library; This library was created to make dynamic events possible and easily manage them; Events will also not run if the world is empty.

To report a glitch/bug and or request a feature please leave a comment on this hub page.

The events in this libary seem to clutter the world(In my oppinion), So you may not want to make them like this, just remember that these were made for testing purposes!

I will eventually get around to updating my AI library to use this system.

Click Here to see more creations by Johan411


Johan411: (Oct 5 2011, 8:05 am)
I already did post an update like 3-4days ago with this feature added. can you re-check again? Or did i miss something about what forum account was mentioning.
Stephen001: (Oct 5 2011, 7:57 am)
From an extensibility point of view, what Forum Account presents would be much better.

What I will do is mark this library as incomplete for now, until the action_set strings concept has been reworked a bit to make is easier to use more generally.

Currently the library is just a little too inflexible, I'm afraid.
Johan411: (Sep 30 2011, 8:50 am)
Yeah that sounds great
Forum_account: (Sep 30 2011, 6:35 am)
It took me a while to realize that the action_set strings in (ex: "Advertise") corresponded to things in a switch statement in Instead of doing it that way I'd make the library use the call() proc. That way you pass it the name or path of a proc and it'll call that proc. I'd do something like this: