I've been thinking a little about scripts recently. I think the best solution is to create a new programming language that's somewhat similar to the ones the bots use, and have "System sysvars". So a script might look like:
cond
*.Simcycles 100000 =
start
Simgravity inc
stop
or something like that. I dunno, just a thought.