Increase level of ability

Status
Not open for further replies.
Level 1
Joined
Apr 28, 2008
Messages
2
I have a problem with a trigger, i need to know how to increase the level of an ability by 1 every 10 seconds, the ability is not a hero ability, the ability is a blight which grows bigger by time, it has 100 levels, the ability is located on a building :con:
 
Level 10
Joined
Apr 3, 2006
Messages
535
So, you add level 1 ability via triggers, wait 10 seconds, remove level 1 ability, then add level 2 ability, wait 10 seconds, then remove level 2 and so on.
You need to make each individual ability per level you need

Sorry i am not near WE at the moment.
 
Level 9
Joined
Dec 12, 2007
Messages
489
you could use timer or periodic trigger that check if a unit or building has that ability, then increases its level by 1. something like:
  • Blight Level Up
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set Groups = (Units in (Playable map area) matching ((Level of Blight for (Matching unit)) Greater than 0))
      • Unit Group - Pick every unit in Groups and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Blight for (Picked unit)) Less than 100
            • Then - Actions
              • Unit - Set level of Blight for (Picked unit) to ((Level of Blight for (Picked unit)) + 1)
            • Else - Actions
      • Custom script: call DestroyGroup(udg_Groups)
 
Status
Not open for further replies.
Top