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