Warcraft III resources & community, 2003–2006 · archived

Team Upgrades

5 posts
#1

Team Upgrades

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?
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.
#2
Don't use Trigger, Is simple.
Create the upgrades in Object Editor.
Edit the hero for use the upgrade created "Techtree-Upgrades used".
And edit a blacksmith for ability the upgrade researchs "Techtree- Researchs Avaliable"
Finish :D :D
#3
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.
#4
You need for team of player that gave upgrade?
#5
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.