Okay, so this is gonna be a long question and complicated. Buckle in your seat and get ready for the ride of your life!!
Okay, well, In my RPG I have some shops (these shops are the units such as a science facility; lets call these
Shops1). And up in the top of the map you can teleported to to these areas where you can purchase items (lets call these
Shops2.) I have 4 towns, 16
Shops1, and 4
Shops2. So I make a location infront of all the
Shops1 to enter the
Shops2. Now, I realized that when I want to exit the shop I need to add something into the trigger that so when you leave the shop it knows where to take you (1 of the four cities).
Okay, so now for an example. There are for cities, "A, B, C, D" (lets call them). I'm in city "A". I go into a shop, I purchase my goods, and then I go to exit the shop, but I need to end up back at city "A". But there are only 4 shop locations that say "exit to a city", and there are 16 shop locations that say "go into the shop".
Now for the triggers. These are my triggers for entering a shop.
Players: -The group of players entering the shop.
Conditions: -Player brings at least 1 unit to location "1. city A - enter shop1".
Actions: -Move all unit for current player at location "1. city A - enter shop1" to location "shop1".
-Set death count for player 8. Set 1 death to a Ursadon(Ice).
-Preserve Trigger.
Now for the other trigger. This is to exit the shop.
Players: -The group of players exiting the shop.
Conditions: -Player brings at least 1 unit to location "exit shop1".
-Player 8 has suffered exactly 1 death of Ursadon(Ice).
Actions: -Move all units owned by player at location "exit shop1" to location "1. city A - exit shop".
-Set death count for player 8. Subtract 1 death to a Ursadon(Ice).
-Preserve Trigger.
So there it is, thats the trigger to make sure you end up where you started. I made it a death count so when you go into shop1 from city B you add 2 death counts so you end back up in city B. But this doesn't seem to be working, if anyone knows why or could help me with thinking of another trigger I would be very grateful!
