• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Passive

Status
Not open for further replies.
How to make a passive like this....
Regeneration 2% max hp and 6% below 20% HP
Can there be more than 1 unit with this passive?
Is it a learned passive?
Does the unit exist in start of map or do you "pick" a hero?
Is it even a hero?

The basics are:
1. Have an initialize trigger, if it is a learned ability or you have a hero picking system, add the hero to a unit-group (or unit if only 1)
2. Have a timed trigger where you have your interval (every 1 seconds? 5 seconds?), for-each unit in group, have an "if" checking the hp if current hp is greater than 0.2 * max-hp, if so set current hp to (Unit - Property (Life)) + (0.02 * (Unit - Max hp)), otherwise set it to the 0.06 value...

Have you tried doing that?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,542
Can there be more than 1 unit with this passive?
Is it a learned passive?
Does the unit exist in start of map or do you "pick" a hero?
Is it even a hero?

The basics are:
1. Have an initialize trigger, if it is a learned ability or you have a hero picking system, add the hero to a unit-group (or unit if only 1)
2. Have a timed trigger where you have your interval (every 1 seconds? 5 seconds?), for-each unit in group, have an "if" checking the hp if current hp is greater than 0.2 * max-hp, if so set current hp to (Unit - Property (Life)) + (0.02 * (Unit - Max hp)), otherwise set it to the 0.06 value...

Have you tried doing that?
I recommend using the Life Regeneration ability since then you can just adjust it's level.

If < 20% Max HP set Ability Level to 2 (6%), otherwise set Ability Level to 1 (2%).

Although, it doesn't really make a difference.
 
Level 6
Joined
Mar 28, 2018
Messages
128
Can there be more than 1 unit with this passive?
Is it a learned passive?
Does the unit exist in start of map or do you "pick" a hero?
Is it even a hero?

The basics are:
1. Have an initialize trigger, if it is a learned ability or you have a hero picking system, add the hero to a unit-group (or unit if only 1)
2. Have a timed trigger where you have your interval (every 1 seconds? 5 seconds?), for-each unit in group, have an "if" checking the hp if current hp is greater than 0.2 * max-hp, if so set current hp to (Unit - Property (Life)) + (0.02 * (Unit - Max hp)), otherwise set it to the 0.06 value...

Have you tried doing that?
You pick a hero at the beggining of the game and each hero has his own passive(Like lol hero, each have 1 passive at the start of game), i want to make this passive for just one hero.
 
Status
Not open for further replies.
Top