So I tried to alias the Scene_Map.prototype.onMapLoaded to randomly generate three unique objects based off some other information passed in via tags for that map. the issue is, the "randomization" is called when ever you open a menu and then close it.
So if the map loads, randomization is called once. Great.
If you open a menu, close it, randomization is called again because the map "loads" again.
I just want to do randomization when a player first loads on that map or when they transfer to another map. not when a scene menu is open.
is Scene_Map.prototype.onMapLoaded the right function to alias?
So if the map loads, randomization is called once. Great.
If you open a menu, close it, randomization is called again because the map "loads" again.
I just want to do randomization when a player first loads on that map or when they transfer to another map. not when a scene menu is open.
is Scene_Map.prototype.onMapLoaded the right function to alias?