SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,994
Hello, Hive.
I've experienced this really weird problem... I am making a Castle Fight style map where units automatically attack-move against the opponent's base. I utilise several <A unit enters region> event triggers for the auto-movement system to work. The problem is that whenever a unit enters a region from North or East, it does not perform its given order to attack-move to the next point. The order is given in the exact same region within the exact same trigger and it works from South and West. I have made a debug message, which appears no matter what side the unit enters from, but it does not execute the attack-move order. Here is what the trigger looks like:
[trigger=""]Additional Order Attack Top Red Attack
Events
Unit - A unit enters Attack Point Red 1 <gen>
Conditions
((Triggering unit) is A structure) Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
Then - Actions
Game - Display to (All players) the text: Order
Set Top_Mid = (Center of Attack Point Mid Top Point <gen>)
Unit - Order (Triggering unit) to Attack-Move To Top_Mid
Custom script: call RemoveLocation (udg_Top_Mid)
Else - Actions
[/trigger]
Also attaching a video:
I've experienced this really weird problem... I am making a Castle Fight style map where units automatically attack-move against the opponent's base. I utilise several <A unit enters region> event triggers for the auto-movement system to work. The problem is that whenever a unit enters a region from North or East, it does not perform its given order to attack-move to the next point. The order is given in the exact same region within the exact same trigger and it works from South and West. I have made a debug message, which appears no matter what side the unit enters from, but it does not execute the attack-move order. Here is what the trigger looks like:
[trigger=""]Additional Order Attack Top Red Attack
Events
Unit - A unit enters Attack Point Red 1 <gen>
Conditions
((Triggering unit) is A structure) Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
(Owner of (Triggering unit)) Equal to Player 3 (Teal)
(Owner of (Triggering unit)) Equal to Player 4 (Purple)
Then - Actions
Game - Display to (All players) the text: Order
Set Top_Mid = (Center of Attack Point Mid Top Point <gen>)
Unit - Order (Triggering unit) to Attack-Move To Top_Mid
Custom script: call RemoveLocation (udg_Top_Mid)
Else - Actions
[/trigger]
Also attaching a video: