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

[Spell] Upgrade ability for units

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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))
 
Level 6
Joined
Aug 27, 2013
Messages
104
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?
 
Level 6
Joined
Aug 27, 2013
Messages
104
  • 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?
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
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

  • Upgrade Trigger.w3m
    15.9 KB · Views: 23
Last edited:
Status
Not open for further replies.
Top