After I select a global variable for the game, when the player dies I want to restart the game with the same variable I selected before. If I don't add any event/action, the game starts with the first global variable of the list and not with the one I selected before.
Develop games in your browser. Powerful, performant & highly capable.
I think there is no way to restore global variables without adding any event.
Let's try with Local Storage OR Web Storage.
Store variable in Key and when load Layout.
You could set back value into your variable.