Staredit Network

Staredit Network -> UMS Assistance -> Trigger Help
Report, edit, etc...Posted by 00cnr on 2006-07-04 at 14:56:29
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. confused.gif

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

Report, edit, etc...Posted by Zeratul_101 on 2006-07-04 at 15:03:29
i hope your triggers aren't in that order. if so, your trigger ordering is messing things up.
after the move drone trigger fires, the drone is put back into 'action button.' hterefore when the sheriff trigger checks its condition, it detects the the drone is in 'action button' and therefore doesn't fire. simply place the first trigger after ALL of the triggers that require the drone to be out of the 'action button'
Report, edit, etc...Posted by 00cnr on 2006-07-04 at 15:12:42
Thanks Zeratul, it's all good now.
Next Page (1)