• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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

Level 15
Joined
Sep 11, 2013
Messages
557
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).
 
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)
 
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
 
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))
 
Back
Top