• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

About getting upgrades to work.

Status
Not open for further replies.
Level 5
Joined
May 20, 2013
Messages
161
Hi, i am trying to set an upgrade to occur whenever a town hall building is upgraded. The idea is, i am trying to do a built in Mercenary upgrade. When a player upgrades tier two & tier three, the trigger will set the mercenary upgrade to lvl 1 & lvl 2 respectively.

Does this make any sense? I have literally been up all night working aT it and am dilerius now.

The upgrade wont take. Yes i did go to the upgrade settings & make sure it was allowed per race. Yes i did go to the units that receive the upgrade, and made sure it was listed with them. The trigger just doesn't seem to be making it happen, Y i don't know why.

Thank you for any advice! ;)

EDIT: Here is the trigger.

MERCENARY UPGRADES

ACTIVATE UPGRADES
Events
Unit - A unit Finishes an upgrade
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Stronghold
(Unit-type of (Triggering unit)) Equal to Keep
(Unit-type of (Triggering unit)) Equal to Halls of the Dead
(Unit-type of (Triggering unit)) Equal to Tree of Ages
Actions
Set UpgradeCastle = (Triggering unit)
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 1 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 1 for (Owner of UpgradeCastle)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of UpgradeCastle) Equal to Fortress
(Unit-type of UpgradeCastle) Equal to Castle
(Unit-type of UpgradeCastle) Equal to Black Citadel
(Unit-type of UpgradeCastle) Equal to Tree of Eternity
Then - Actions
Player - Set the current research level of Mercenary Upgrades 1 (Orc1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Nightelf1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Human1) to 2 for (Owner of UpgradeCastle)
Player - Set the current research level of Mercenary Upgrades 1 (Undead1) to 2 for (Owner of UpgradeCastle)
Else - Actions
Do nothing
 
Last edited:
Can't seem to replicate an error:

  • Upgrades
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiple ConditionsOr - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Equal to (==) Keep
              • (Unit-type of (Triggering unit)) Equal to (==) Stronghold
        • Then - Actions
          • Player - Set the current research level of Iron Forged Swords to 1 for (Owner of (Triggering unit))
          • Player - Set the current research level of Steel Melee Weapons to 1 for (Owner of (Triggering unit))
          • Game - Display to (All players) the text: Upgrade1
        • Else - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Multiple ConditionsOr - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Triggering unit)) Equal to (==) Castle
                  • (Unit-type of (Triggering unit)) Equal to (==) Fortress
            • Then - Actions
              • Player - Set the current research level of Iron Forged Swords to 2 for (Owner of (Triggering unit))
              • Player - Set the current research level of Steel Melee Weapons to 2 for (Owner of (Triggering unit))
              • Game - Display to (All players) the text: Upgrade2
            • Else - Actions
works on my end
 
Hmmm... TY so much for testing it. I am suspecting that perhaps i used the wrong template. I seem to recall that upgrades are kinda weird when it comes to using them as a custom. Some seem to be more functional than others, even when the fields are set up identical. I had hoped they had ironed that out by now!

But, again, ty for taking the time. I will keep working at it.
 
What default upgrade did you customize then?
There are indeed some thing which won't work, like berserker troll upgrade with buildings.
 
TY for your time. I built it from Orc, Chaos upgrade. And yes, when i looked back at it, the "Applies to All Units" field was toggled on. So it very well might be that. I presented my trigger like yours, and it "worked" -but it wasn't working consistently, for whatever reason. And i don't understand why that is. I might just go ahead & redo it off one of the Naga upgrades, since my map isn't using them for anything.
 
Status
Not open for further replies.
Back
Top