I'm having problems with a Location Leak. I know how to fix them, but, let me explain:
I made a map with a lot of... "Stages". These stages have regions (for the spawn for the hero, for the respawn when he dies, etc). At the beginning of the game, the Player must chose the Stage to start. So "what did I do ?" you may ask. I just created a single Trigger that the event is the stage selection and, in the actions, a Variable for a Location, called Region_Start and, depending on the Stage selected, this variable would turn into the region associated with the Stage. For example: "Ice Stage" has the region 001 for spawn/respawn. When you select "Ice Stage", the "Region_Start" is set to region 001 (the region in the Ice Stage for spawn/respawn).
"Unit is sold, move unit to Region_Start" - Spawn
"Revive Hero Insantly at Region_Start" - Respawn
How can I destroy them ? RemoveLocation in any of the triggers will mess with everything, the game wont know anymore which Location is the Region_Start and the hero will, possibly, not respawn or not spawn. Wont it ?
I made a map with a lot of... "Stages". These stages have regions (for the spawn for the hero, for the respawn when he dies, etc). At the beginning of the game, the Player must chose the Stage to start. So "what did I do ?" you may ask. I just created a single Trigger that the event is the stage selection and, in the actions, a Variable for a Location, called Region_Start and, depending on the Stage selected, this variable would turn into the region associated with the Stage. For example: "Ice Stage" has the region 001 for spawn/respawn. When you select "Ice Stage", the "Region_Start" is set to region 001 (the region in the Ice Stage for spawn/respawn).
-
Ice Stage
-
Events
- Dialog - A dialog button is clicked for Dialogue_Box
-
Conditions
- (Clicked dialog button) Equal to Dialogue_buttons[1]
-
Actions
- Set Region_Start = Random Point in Region 001 <gen>
-
Events
-
Fire Stage
-
Events
- Dialog - A dialog button is clicked for Dialogue_Box
-
Conditions
- (Clicked dialog button) Equal to Dialogue_buttons[2]
-
Actions
- Set Region_Start = Random Point in Region 002 <gen>
-
Events
"Unit is sold, move unit to Region_Start" - Spawn
"Revive Hero Insantly at Region_Start" - Respawn
How can I destroy them ? RemoveLocation in any of the triggers will mess with everything, the game wont know anymore which Location is the Region_Start and the hero will, possibly, not respawn or not spawn. Wont it ?