[Spell] Active ability that give a bonus hidden passive ability

Level 13
Joined
Sep 11, 2013
Messages
467
Greetings!

What triggers do I have to use In order to create this spell?

Example:

Storm Bolt Default (active)
This active ability must also give the owner a hidden passive that gives 10 damage bonus per level and 10% bonus movement speed per level and must have 3 levels.
How can I do that? :peasant-confused:

The help will be appreciated!
 
You can use the event "A unit learns a skill" to catch if the Storm Bolt ability is being learned by a Hero.

If the conditions are fulfilled, you can add (or adjust the level of) the passive ability. In this case, you'll likely use two custom passive abilities, one that grants a damage bonus (Command Aura or Item Damage Bonus), and one for the movement speed bonus (Unholy Aura or Endurance Aura).
 
Level 13
Joined
Sep 11, 2013
Messages
467
You can use the event "A unit learns a skill" to catch if the Storm Bolt ability is being learned by a Hero.

If the conditions are fulfilled, you can add (or adjust the level of) the passive ability. In this case, you'll likely use two custom passive abilities, one that grants a damage bonus (Command Aura or Item Damage Bonus), and one for the movement speed bonus (Unholy Aura or Endurance Aura).
I don't really understand how to adjust the level? I don't understand what triggers should I use.. Also, I need 3 different spells of item damage bonus and 3 different spells of endurance aura?

For the moment I did that, but works only once as expected.

  • Untitled Trigger 002
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Storm Bolt X
    • Actions
      • Unit - Add Item Damage Bonus (+10) to (Triggering unit)
 
Level 29
Joined
Sep 26, 2009
Messages
2,594
there is gui action "unit - set ability level for unit" or something like that. There is also integer function "unit - get level of ability for unit".
You can mix the two so you set level of passive ability to level of Storm Bolt X.

The base trigger flow should be:
  • Unit learns a skill
  • Skill is Storm Bolt X
  • If level of Storm Bolt X for triggering unit == 1 then Add passive to triggering unit
  • else set level of passive to level of Storm Bolt
 
Level 13
Joined
Sep 11, 2013
Messages
467
there is gui action "unit - set ability level for unit" or something like that. There is also integer function "unit - get level of ability for unit".
You can mix the two so you set level of passive ability to level of Storm Bolt X.

The base trigger flow should be:
  • Unit learns a skill
  • Skill is Storm Bolt X
  • If level of Storm Bolt X for triggering unit == 1 then Add passive to triggering unit
  • else set level of passive to level of Storm Bolt
Thank you very much @Nichilus & @MyPad ! Seems to work perfectly! :peasant-thumbs-up-cheers:

  • Untitled Trigger 002
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Storm Bolt X
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Storm Bolt X for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Add Item Damage Bonus (+10) to (Triggering unit)
          • Unit - Add Endurance Aura X to (Triggering unit)
        • Else - Actions
          • Unit - Set level of Item Damage Bonus (+10) for (Triggering unit) to (Level of Storm Bolt X for (Triggering unit))
          • Unit - Set level of Endurance Aura X for (Triggering unit) to (Level of Storm Bolt X for (Triggering unit))
 
Top