- Joined
- Mar 16, 2008
- Messages
- 955
CPU player has 4 archers that players can use to help them. When one of these dies these triggers are supposed to train another and re-order it to the original guard positions. For some reason, when udg_sentinel[3] dies, it trains 3 more archers and doesn't order them to move anywhere. I'm really stumped by this.
Any feedback would be appreciated:
Any feedback would be appreciated:
-
sentinel dies 1a
-
Events
-
Unit - A unit owned by Player 10 (Light Blue) Dies
-
-
Conditions
-
(Dying unit) Equal to sentinels[1]
-
(Player 10 (Light Blue) Current gold) Greater than or equal to 130
-
(Player 10 (Light Blue) Current lumber) Greater than or equal to 10
-
-
Actions
-
Set VariableSet sentinels[1] = No unit
-
Unit - Order Sentinel's Outpost 0221 <gen> to train/upgrade to a Archer
-
-
-
sentinel dies 1b
-
Events
-
Unit - A unit owned by Player 10 (Light Blue) Dies
-
-
Conditions
-
(Dying unit) Equal to sentinels[2]
-
(Player 10 (Light Blue) Current gold) Greater than or equal to 130
-
(Player 10 (Light Blue) Current lumber) Greater than or equal to 10
-
-
Actions
-
Set VariableSet sentinels[2] = No unit
-
Unit - Order Sentinel's Outpost 0221 <gen> to train/upgrade to a Archer
-
-
-
sentinel dies 2a
-
Events
-
Unit - A unit owned by Player 10 (Light Blue) Dies
-
-
Conditions
-
(Dying unit) Equal to sentinels[3]
-
(Player 10 (Light Blue) Current gold) Greater than or equal to 130
-
(Player 10 (Light Blue) Current lumber) Greater than or equal to 10
-
-
Actions
-
Set VariableSet sentinels[3] = No unit
-
Unit - Order Sentinel's Outpost 0222 <gen> to train/upgrade to a Archer
-
-
-
sentinel dies 2b
-
Events
-
Unit - A unit owned by Player 10 (Light Blue) Dies
-
-
Conditions
-
(Dying unit) Equal to sentinels[4]
-
(Player 10 (Light Blue) Current gold) Greater than or equal to 130
-
(Player 10 (Light Blue) Current lumber) Greater than or equal to 10
-
-
Actions
-
Set VariableSet sentinels[4] = No unit
-
Unit - Order Sentinel's Outpost 0222 <gen> to train/upgrade to a Archer
-
-
-
sentinel trained 3 east
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Triggering unit) Equal to Sentinel's Outpost 0221 <gen>
-
-
Actions
-
AI - Ignore (Trained unit)'s guard position
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
sentinels[1] Equal to No unit
-
-
Then - Actions
-
Set VariableSet sentinels[1] = (Trained unit)
-
Unit - Order sentinels[1] to Attack-Move To sentinel_loc[1]
-
Skip remaining actions
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
sentinels[2] Equal to No unit
-
-
Then - Actions
-
Set VariableSet sentinels[2] = (Trained unit)
-
Unit - Order sentinels[2] to Attack-Move To sentinel_loc[2]
-
Skip remaining actions
-
-
Else - Actions
-
-
-
-
sentinel trained 3 west
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Triggering unit) Equal to Sentinel's Outpost 0222 <gen>
-
-
Actions
-
AI - Ignore (Trained unit)'s guard position
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
sentinels[3] Equal to No unit
-
-
Then - Actions
-
Set VariableSet sentinels[3] = (Trained unit)
-
Unit - Order sentinels[3] to Attack-Move To sentinel_loc[3]
-
Skip remaining actions
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
sentinels[4] Equal to No unit
-
-
Then - Actions
-
Set VariableSet sentinels[4] = (Trained unit)
-
Unit - Order sentinels[4] to Attack-Move To sentinel_loc[4]
-
Skip remaining actions
-
-
Else - Actions
-
-
-
-
init
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set VariableSet sentinels[1] = Archer 0217 <gen>
-
Set VariableSet sentinels[2] = Archer 0216 <gen>
-
Set VariableSet sentinels[3] = Archer 0218 <gen>
-
Set VariableSet sentinels[4] = Archer 0219 <gen>
-
-