script_system.zip

Uploaded: 02 Sep, 2006
Previous uploads by this submitter: 0

Author: Richard Ortiz

Downloads: 135

I developed this system because I felt the stock smaug mob program script system
was very underdeveloped. The stock system moved one line at a time, did not take
ifchecks into account, and also every script on a mob ran constantly all at once.

Features:
* Creation of script groups, allowing for multiple stages of a script, with only
one of the scripts from the group allowed to run at a single time.
* Ability to stop/start/restart scripts via the mpscript command.
* Like stock smaug only one line runs at a time, however ifchecks are taken into
account by implementing the mpsleep system, which will restore the current
environment after every line.
* When combined with the mob prog variables snippet (my modified version of which
is included) and the mpsleep system (included and required) will provide greater
script flexibility.

9/6/2006 : Added section in the progvariables.txt file for adding the ability to make functions that a builder can call like:
setvar $i 1 $f.rand(20,40)
or
if str($n) <= $f.rand(20,40)