Here's my problem:
I'm making a way for a unit to enter buildings when they want to, so if it pass the "enter" location, the unit won't automatically enter the building unwillingly. To do this I have a Zerg Drone in a 2x2 square area covered in a location called 'P1- Action Button'. When the drone moves out of this location, a trigger moves it back. All enter/exit triggers use the condition: "Player 1 brings exactly 0 zerg drone to P1- Action button" detecting when the player has moved his drone and wants to enter/exit a building but, it doesn't work. When I move the drone from the location, it resets but nothing else happens.
Here are the triggers used:
Trigger |
Description: |
This trigger detects when the drone moves away from the 2x2 square location (Works fine) |
|
Players: |
¤ Player 1 |
Conditions: |
¤ Player 1 brings exactly 0 zerg drone to P1- Action Button |
Actions: |
¤ Move all zerg drone for player 1 at 'action reset' to 'p1-action button'
|
¤ Preserve Trigger |
Trigger |
Description: |
Here, the unit is at the Sheriff's Office and wants to enter (Doesn't work) |
|
Players: |
¤ Player 1 |
Conditions: |
¤ Player 1 brings exactly 0 zerg drone to 'P1- Action Button'
|
¤ Player 1 brings at least 1 any unit to 'Sheriff's Office' |
Actions: |
¤ Move all Any units for player 1 at 'Sheriff's Office' to 'Sheriff's Office (Enter)'
|
¤ Preserve Trigger |