There appears to be a catastrophic bug within the world editor’s trigger module where editing or making a new variable with a new type resets the value of the next selected variable (of any type) in the GUI.
For instance, I make a “temptimer” variable in the GUI, then select the already-existing “tempunit” below it, and the result is the “tempunit” variable becomes cleared in every trigger it is currently active in (even though its type didn’t change).
This is a bad bug. There is no undo for cleared variables in actions, etc., so selecting a variable used in several triggers means having to recreate every single function you had previously made (for no reason, the variable did not change type or array size, etc.).
The only option right now is that every major change be saved as a new map version, that way I can simply close and refresh without saving the bugged variable reset.
Update: pasting a variable causes the bug as well. It seems to only happen once per launch of the editor. Video demonstration after a fresh load of my map:
https://www.youtube.com/watch?v=PVyKubtT4uA
(Ignore any bad GUI code it’ll all be scripted in Lua hopefully )
Update 2: this is with a map set to Lua