[Suggestion] ClearGlobals button

Started by GoodMorning, March 17, 2017, 12:29:47 AM

Previous topic - Next topic

GoodMorning

...perhaps under the SCRIPTS tab of the editor?
A narrative is a lightly-marked path to another reality.

kajacx

There is already ClearGlobals PRPL function, so you could probably bind that to a key.
Why do work yourself, when you can write a program that will do the work for you.

GoodMorning

We can do almost anything by writing tiny scripts, but this was a QoL suggestion.
A narrative is a lightly-marked path to another reality.

kajacx

#3
Soooooo....
Guess who needs a ClearGlobals button :)
But honestly, if we could get an option to automaticly clear all global variables when reloading the scripts (hitting the "Compile" button), that would be great. It can be like a little checkbox somewhere, and it would help tremendously.

EDIT: I have solved this by making a script with ClrearGlobals in a "once" block, and they adding "1 Delay" to the start of every other script. At the time of making the post, I thought that this was not a viable solution for some reason (I think I was afraid that I will forget to add the "1 Delay" to some script and get punished horribly), but it works just fine.
Why do work yourself, when you can write a program that will do the work for you.