Global volatile variables #4878
-
I think it would be incredibly useful if Skript had variables that were automatically deleted upon the server stopping (i.e. stored in memory and never written to a file) They would be different from local variables in that they could be accessed globally but similar in that they're stored purely in memory. Here's an example of what it could look like:
With this, it could add a more resource efficient method of storing and retrieving temporary values, as well as create solutions for things like cooldowns and temporary variables that need to be accessed in a global scope. Although storing items in a list variable and clearing the entire list is a way to manage these variables, it would be more resource efficient and would give some extra syntactic sugar to using these variables in this manner. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This already exists. Check the last section of the config.sk file, there's an explanation on how to enable this there.
|
Beta Was this translation helpful? Give feedback.
This already exists. Check the last section of the config.sk file, there's an explanation on how to enable this there.