🏆 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!
You could try tomes (but there are probably some drawbacks). Otherwise, just make them drop an item, give them the item with the health bonus to use, and then just make them pickup the item again.
Look at the item ability Item Permanent Life Gain.
Create three copies of it, one with +100, one with +10 and one with +1 for example.
Then create three different items (use manual of health as the base item), Manual of +100 health, +10 health and +1 health and give those abilites to them.
Then you can use this trigger:
Untitled Trigger 003
Events
Unit - A unit enters Region 000 <gen>
Conditions
Actions
Set Temp_Integer_1 = 153
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Set Temp_Integer_1 = (Temp_Integer_1 - 100)
Hero - Create Manual of Health 100 and give it to (Triggering unit)
Item - Remove (Last created item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Temp_Integer_1 Less than 100
Then - Actions
For each (Integer B) from 1 to 10, do (Actions)
Loop - Actions
Set Temp_Integer_1 = (Temp_Integer_1 - 10)
Hero - Create Manual of Health 10 and give it to (Triggering unit)
Item - Remove (Last created item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Temp_Integer_1 Less than 10
Then - Actions
For each (Integer loopA) from 1 to 10, do (Actions)
Loop - Actions
Set Temp_Integer_1 = (Temp_Integer_1 - 1)
Hero - Create Manual of Health 1 and give it to (Triggering unit)
Item - Remove (Last created item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Temp_Integer_1 Equal to 0
Then - Actions
Skip remaining actions
Else - Actions
Else - Actions
Else - Actions
If it's temporary bonus, just save how many of each items you created for the hero.
Create three items with -100, -10 and -1 health bonuses. Click shift + Enter when setting negative values.
Then when the health should be lost, create three loops and give the unit the negative tomes.
Using items is a bad idea, they don't get removed after use and leak.
Instead use "+HP bug". The ability that permanently increases hero HP ("Item hero health bonus" or something like that) only modifies HP on add/remove, not when it changes level. So you can make such ability that adds +11 HP on first level, +1 on second and then add it (hero gets +11HP), set it to level 2 (no change) and remove it (hero loses 1 HP).
That way you can increase HP permanently (also works for the according mana bonus ability)
As I said, create an ability based on "Item Life bonus" with two levels, first level adds X+1 HP, second level 1 HP. Then, in the trigger, just:
1. Add this ability
2. Set it to level 2
3. Remove it
It will leave the hero with X bonus health.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.