There's a function called Game.DoOnceOnly which is meant to do something only once during the game.
It allows to avoid making lots of variables for each case when you need something like this.
https://adventuregamestudio.github.io/ags-manual/Game.html#gamedoonceonly
It allows to avoid making lots of variables for each case when you need something like this.
https://adventuregamestudio.github.io/ags-manual/Game.html#gamedoonceonly