Way to terminate a script?

Posted by Eloni on Thu 30 Jan 2014 10:15 AM — 3 posts, 15,231 views.

#0
I need a way to terminate my script. When I add new pieces of code I sometimes get a runaway script, or sometimes I need to briefly play my mud without scripts or triggers.


It would be nice to do this with a keypress. From what I read online it is impossible or very hard to do with LUA. Is this true? If so I'm wondering if there's an option built in to MUSHclient?
Australia Forum Administrator #1
See this for how to recover from scripts that accidentally go into a lengthy loop:

http://www.gammon.com.au/forum/?id=6534

To play without scripts can't you just turn triggers off? There is a checkbox for that, and you can make a macro (which therefore can be a keystroke) to toggle that checkbox.
#2
I got the script working, and yeah disabling/enabling triggers would work. Lol, didn't consider that. Thanks.