I am trying to set up a trigger that will upgrade for a whole team. I want it to upgrade the heros armor/damage/range when the blacksmith finishes researching the upgrade. I have set up each hero so that it accepts the upgrade. The code i am using is below. Any idea why it will not upgrade?
Code:
Blue MD
Events
Unit - A unit owned by Player 1 (Red) Finishes an upgrade
Conditions
(Researched tech-type) Equal to Medium-Density Ammo
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Medium-Density Ammo for Player 1 (Red)) Equal to 1
Then - Actions
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Player - Set the current research level of Medium-Density Ammo to 1 for (Picked player)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Medium-Density Ammo for Player 1 (Red)) Equal to 2
Then - Actions
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Player - Set the current research level of Medium-Density Ammo to 2 for (Picked player)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current research level of Medium-Density Ammo for Player 1 (Red)) Equal to 3
Then - Actions
Player Group - Pick every player in Team1 and do (Actions)
Loop - Actions
Player - Set the current research level of Medium-Density Ammo to 3 for (Picked player)
Else - Actions
Do nothing
As far as i can tell this trigger SHOULD work, but it doesn't, any help appreciated.