Eluna icon indicating copy to clipboard operation
Eluna copied to clipboard

Suggestion, eluna .reload specific script

Open CyberMist2 opened this issue 5 years ago • 1 comments

I would like to suggest changing the .reload eluna command to a specific target file name.

Why? Because while running some scripts, if you reload the eluna scripts, those scripts are interrupted, for example phased boss scripts, or in progress timed events.

CyberMist2 avatar Jun 16 '20 19:06 CyberMist2

You can code that yourself, inside that file. I believe so.

xIvan0ff avatar Aug 26 '20 13:08 xIvan0ff

This is probably not going to be implemented. When you load a script, its content gets read into the state. We don't keep track of what exactly is loaded into the state for each individual script in a way that allows us to "unload" what has already been loaded.

As an example, if your script has two functions, and we load both these functions, they now exist in the state. If you were to remove a function and reload the script, one function would be overwritten by the new one, but the old removed function would still exist.

Foereaper avatar Oct 14 '23 22:10 Foereaper