• 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!

[Spell] Upgrade ability for units

Status
Not open for further replies.
1) Create an Upgrade based on Berserker Strength.
2) Add the Upgrade to your Skeleton's Upgrades Used in the Object Editor.
3) Increase the level of the Upgrade when your Hero learns the Skeleton Mastery ability.
  • Learn Skeleton Mastery
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Skeleton Mastery
    • Actions
      • Player - Set the current research level of YOUR UPGRADE to ((Current research level of YOUR UPGRADE for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
 
1) Create an Upgrade based on Berserker Strength.
2) Add the Upgrade to your Skeleton's Upgrades Used in the Object Editor.
3) Increase the level of the Upgrade when your Hero learns the Skeleton Mastery ability.
  • Learn Skeleton Mastery
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Skeleton Mastery
    • Actions
      • Player - Set the current research level of YOUR UPGRADE to ((Current research level of YOUR UPGRADE for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
This work for first time when learned, what about level 2 and 3?
 
  • skeletal mastery
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Skeletal Mastery
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Skeletal Mastery for (Learning Hero)) Equal to 1
        • Then - Actions
          • Player - Set the current research level of Skeletal Mastery to 1 for Player 1 (Red)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Skeletal Mastery for (Learning Hero)) Equal to 2
            • Then - Actions
              • Player - Set the current research level of Skeletal Mastery to 2 for Player 1 (Red)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Skeletal Mastery for (Learning Hero)) Equal to 3
                • Then - Actions
                  • Player - Set the current research level of Skeletal Mastery to 3 for Player 1 (Red)
                • Else - Actions
                  • Do nothing
is this good?
 
My trigger works for every level.

It gets the current level of the upgrade and increases it by 1. So if it's level 0 it increases it to level 1 (0+1 = 1). If it's level 1 it increases to level 2 (1+1 = 2), etc...

Also don't use "Do nothing", it does nothing :p

I attached a map with an example of the Action I used if you were having trouble recreating it.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top