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

[Spell] HP Bonus (Item to Unit Ability) dont work

Status
Not open for further replies.
Level 6
Joined
Feb 5, 2012
Messages
1,685
I have an item that will increase the hp of the hero.
I do is i put HP BONUS (An item to unit ability) has 100 level
Level 1 - 0
Level 2 - 50
so forth...

When a unit acquires an item
Item type = Increase HP Bonus
Set level of HP Bonus for hero manipulating to Level of HP Bonus + 1

But it dont work
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
That ability is not meant to be level-able.
You need to create that ability with 2 levels, Level 1 grants 0 HP, Level 2 grants 50 HP.
If you want to increase max HP by 50, make it negative (-50), if you want to decrease max HP by 50, make it positive.

When unit acquires that item, give that ability to that unit, set it to level 2 and remove it;
  • Untitled Trigger 002
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to HP Bonus
    • Actions
      • Unit - Add HP Bonus to (Triggering unit)
      • Unit - Increase level of HP Bonus for (Triggering unit)
      • Unit - Remove HP Bonus from (Triggering unit)
If you want to have this as an item ability, better to use Manual of Health ?
It increases max HP too you know.

PS: You can look at my signature for Custom Stats system, it allows you to modify your Max HP, and some other stuffs.
 
Status
Not open for further replies.
Top