Page 1 of 1

How do I stop an ongoing (skillup) script?

Posted: Thu Jan 31, 2019 4:24 pm
by momotle
So I've googled endlessly and tried the search function on this forum and can't find how to simply kill an ongoing script.

I'm not using any kind of plugin or addon, just a plain old script that I wrote up, lasting 10mins to skillup. I remember being able to kill an ongoing script back when Windower was being used on retail, but I have very little experience with Ashita.

Anyone know how I can stop a simple script from continuing until it's complete? Thanks!

Re: How do I stop an ongoing (skillup) script?

Posted: Thu Jan 31, 2019 5:47 pm
by atom0s
Scripts are not killable by commands, never have been. They are not meant to be looped indefinitely either. You should be using addons or plugins to do this instead.

As for killing the script, really depends on how it's running. If it's re-executing itself or another script back and forth just delete the script or move it from the scripts folder. If you have it full of just repeated actions then you will have to let it finish or just kill the game.

Re: How do I stop an ongoing (skillup) script?

Posted: Thu Jan 31, 2019 7:00 pm
by momotle
atom0s wrote:
Thu Jan 31, 2019 5:47 pm
Scripts are not killable by commands, never have been. They are not meant to be looped indefinitely either. You should be using addons or plugins to do this instead.

As for killing the script, really depends on how it's running. If it's re-executing itself or another script back and forth just delete the script or move it from the scripts folder. If you have it full of just repeated actions then you will have to let it finish or just kill the game.
Ah, okay. I thought I vaguely remembered being able to kill a script on command in the past. I thought there was a simple way to stop/pause them; I guess I'll look into how to set them up via plugin/addons then. It's just that writing scripts is really really easy haha. I only make skillup scripts that last 5-10mins long though, so it wasn't too big an issue. Thanks very much for the quick reply!

Re: How do I stop an ongoing (skillup) script?

Posted: Thu Jan 31, 2019 9:07 pm
by atom0s
I'd recommend looking at the Repeater plugin. You can set that up to execute a script, then only have the script do whatever it is you want once. That way repeater is handling the repeats and can be stopped.