
Admin Tools
Purple EventHandler for Reborn Patch
Creator
Purple Elephant1au
Version
N/A
Game Type
MOHAA
Reborn Compatible
Unknown
Description
Purple Elephants Eventhandler 1.02
Very helpful script to help organise the Reborn events
-------- Changelog 16/11/2014 -----
v1.02
*Added Auto_Load feature
- will automatically load scripts within the selected event folders
under global/events//
*fixed bug when thread not included ie main thread
-------- Changelog 25/09/2013 -----
v1.01
--Added the following fixes--
* Bugged scores when starting map
* Freezetag spectators being affected by spawn event
* Freezetag first round, spawn event not triggered for already spawned players
* Elgbot Support
* Adds state tags to player for spawn, disconnect and connected
- local.player.spawned
- local.player.connected
Then removes it after a set time , level.tagwait , advised not to go higher then 10.
Useful if you want to just check if a player spawned without registering an event.
------------------------------------
Usage :
First Add the following to your dmprecache.scr
-------------------------------
exec global/eventhandler.scr
-------------------------------
Also Fixed the problem that spawn events are triggered at map change and/or restarts , so no need to add it twice.
NOTE:: You CAN use both methods below, you are not limited to one or the other.
/////////////////////////////////////////////////////////
**** Auto Load Feature
This feature is limited to the main thread of each script, so 1 event per script, if you require thread based event scripts, please see the Advanced Registering mode
TO TURN ON THIS FEATURE >> Go to the event_handler settings, and set level.auto_load to 1
With this feature, it makes loading event scripts even easier, does not require them to be registered like in the Advanced Registering mode.
All you have to do is place the script you want to load within the given event folder.
under global/events//
and will automatically load scripts within the selected event folder
Example:
If you place a file names spawn.scr inside the global/events/spawn/ folder, it will load when the spawn event is triggered.
So any script within the global/events/spawn/ folder will be triggered on spawn
///////---------------------//////// Advanced Registering /////////-----------------------------------//////
This method is for advanced users who require the event to be triggered on a certain thread inside the script, or would rather a different directory to load the scripts from. This method lets you set the path and thread of each event manually.
Add to any script in which you want the event to be registered
waitexec global/eventhandler.scr::register event script
Examples::
waitexec global/eventhandler.scr::register spawn global/testscript.scr::main
or
waitexec global/eventhandler.scr::register connected global/testscript.scr::connected
Your script should look like
global/yourscript.scr::yourlabel local.player:
/////////---------------///////////////////////////////////////////-----------------------------////////////
Credits
PurpleElephant and Reborn patch
Related MOHAA Mods
More Admin Tools →Engine & Patch Compatibility
Community-tested verification on official patches & Reborn
0.00 reviews
Community Rating & Discussions
Rate this mod and share feedback or installation tips with fellow players.
Your Rating:
Leave a Comment / ReviewLog in to join the discussion
Loading discussions...
Downloads
182
Total Downloads
Date Added
November 16, 2014
Download
Mod Information
Rating5.0/5



