• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Upgrade ability for units

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,537
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
103
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
103
  • 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 64
Joined
Aug 10, 2018
Messages
6,537
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: 19
Last edited:
Status
Not open for further replies.
Top