• 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!

Add Stat % Passive

Status
Not open for further replies.
Something like this:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Attribute Bonus
    • Actions
      • Hero - Modify Strength of (Learning Hero): Set to (Integer(((Real((Strength of (Learning Hero) (Exclude bonuses)))) x 1.10)))
      • Hero - Modify Agility of (Learning Hero): Set to (Integer(((Real((Agility of (Learning Hero) (Exclude bonuses)))) x 1.10)))
      • Hero - Modify Intelligence of (Learning Hero): Set to (Integer(((Real((Intelligence of (Learning Hero) (Exclude bonuses)))) x 1.10)))
 
Last edited:
Something like this:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Attribute Bonus
    • Actions
      • Hero - Modify Strength of (Learning Hero): Set to (Integer(((Real((Strength of (Learning Hero) (Exclude bonuses)))) x 1.10)))
      • Hero - Modify Agility of (Learning Hero): Set to (Integer(((Real((Agility of (Learning Hero) (Exclude bonuses)))) x 1.10)))
      • Hero - Modify Intelligence of (Learning Hero): Set to (Integer(((Real((Intelligence of (Learning Hero) (Exclude bonuses)))) x 1.10)))
or as jass:


Just one question - if the unit gets the ability through triggers, such as "Unit - Add Ability", will it work?
 
It only runs when the hero learns the ability.

You have to run the three actions if you add any other way.

I made the trigger and realized it affects the actual stats. All though that too is something I like and will use later, the trigger I need for now would need be a bonus to the actual stats, just like an attribute bonus would act like.
 
Status
Not open for further replies.
Back
Top