[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