Knuckle Cracker

Particle Fleet => Feedback, Features, and Suggestions => Topic started by: GoodMorning on March 17, 2017, 12:29:47 AM

Title: [Suggestion] ClearGlobals button
Post by: GoodMorning on March 17, 2017, 12:29:47 AM
...perhaps under the SCRIPTS tab of the editor?
Title: Re: [Suggestion] ClearGlobals button
Post by: kajacx on March 23, 2017, 07:08:41 PM
There is already ClearGlobals (https://knucklecracker.com/wiki/doku.php?id=prpl:clearglobals) PRPL function, so you could probably bind that to a key.
Title: Re: [Suggestion] ClearGlobals button
Post by: GoodMorning on March 23, 2017, 11:14:39 PM
We can do almost anything by writing tiny scripts, but this was a QoL suggestion.
Title: Re: [Suggestion] ClearGlobals button
Post by: kajacx on March 29, 2017, 02:39:09 PM
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.