Today i began work on the Divinity Script System. Because i wanted something light weight, and that wasn't complicated, I wrote a very simplistic system to help handle events (Such as object use).
Upon start up, the ScriptManager is initialized, and loads the scripts. It loads them once. This cuts down on unnecessary file readings.
Scripts CAN be rehashed after start up, thus removing the need to restarts.
Once loaded, they can be called by the following:
ScriptManager.scriptMap.get(objectID).executeScrip t(client);
I'll some how post a 'video' of this once it's 100 % completed.
Here's a image debugging how long it took to complete the script. Using the formula endTime - startTime (In Milliseconds).
I executed the script 5 times to show.
[Only registered and activated users can see links. Click Here To Register...]
