• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Team Upgrades

Status
Not open for further replies.
Level 3
Joined
Jul 27, 2004
Messages
28
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.
 
Level 3
Joined
Jul 27, 2004
Messages
28
yea i did that, but then it only upgrades for the owner of the blacksmith. Im trying to get it to upgrade a whole team.
 
Level 3
Joined
Jul 27, 2004
Messages
28
I need it so that when a player on team 1 researches an upgrade it will upgrade all units owned by players on team 1.
 
Status
Not open for further replies.
Top