HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why doesnt this work?

10-27-2006, 10:31 AM#1
Fulla
I dont understand the problem with this.

Trigger:
Combat
Collapse Events
Unit - A unit Is issued an order targeting an object
Collapse Conditions
Collapse And - All (Conditions) are true
Collapse Conditions
(Issued order) Equal to (Order(attack))
((Ordered unit) is in CombatGroup) Equal to False
Collapse Actions
Trigger - Turn off Combat Phase <gen>
Trigger - Turn off Combat Phase2 <gen>
Countdown Timer - Pause Timer
Unit - Unpause (Target unit of issued order)
Unit - Order (Target unit of issued order) to Attack (Ordered unit)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Ordered unit)) Equal to Player 1 (Red)
Collapse Then - Actions
Unit - Change ownership of (Ordered unit) to Neutral Victim and Change color
Selection - Clear selection for Player 1 (Red)
Collapse Else - Actions
Unit - Change ownership of (Ordered unit) to Neutral Extra and Change color
Selection - Clear selection for Player 2 (Blue)
Unit Group - Add (Ordered unit) to CombatGroup
Unit Group - Add (Target unit of issued order) to CombatGroup

Combat Group is definetly empty.
But the attacking unit never changes ownership?
10-27-2006, 10:52 AM#2
The)TideHunter(
Use Debug messages here and there, display some text, firstly the name of the ordered unit, the name of the target of issued order, and display the number of units in combat group. (These are just to see where you are)
10-27-2006, 11:25 AM#3
Captain Griffen
Sure it is attack, rather than smart, order?
10-27-2006, 12:36 PM#4
Chuckle_Brother
Yeah I think you're right Griffen, the "attack" order is only done when you manually hit 'A' or click the attack button then target a unit with it.
10-27-2006, 02:12 PM#5
Fulla
What is the order string for - 'smartmove/attack' right click etc. plz
10-27-2006, 02:22 PM#6
Captain Griffen
"smart" for all smart commands.
10-27-2006, 10:01 PM#7
[VDM]Amn
Trigger:
Events
Unit - A unit is attacked
10-27-2006, 11:39 PM#8
The)TideHunter(
Quote:
Originally Posted by [VDM]Amn
Trigger:
Events
Unit - A unit is attacked


The event that Fulla uses and that event are different for a reason.
The event you showed triggers when the unit begins to attack.
While Fulla's could trigger when your ordered to attack from the other side of the map!