Making a potion that heals a vertain value via trigger

Status
Not open for further replies.
Level 4
Joined
Jan 21, 2009
Messages
57
Im trying to make a Trigger that will restore the health fo a hero, like this though

Strength Potion of Healing
Desc: Heals a base of 200 Health, with a bonus of x3.5 of the heroes current strength.

Any idea on how to do this, I would most likely to have this in GUI since i dont have any intelligence of JASS/vJASS

The trigger currently looks like this.
Currently, i have it trying to Heal 200+5% of heroes strength including bonuses

  • Events
  • Unit - a unit uses a item
  • Conditions
  • (Item-type of(item being manipulated)) Equal to |cffff3030Strength|r Potion of Health
  • Actions
  • Unit - Set life of (Hero Manipulating Item) to (((Real((Strength of (Hero manipulating item)(Include Bonuses)))) / 5.00) + 1.00)%
Edit: Nevermind i Fixed it. So, change the Tag to SOLVED :P
 
Last edited:
what about this?

  • Heal
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Healing Salve
    • Actions
      • Unit - Set life of (Hero manipulating item) to ((Life of (Hero manipulating item)) + (200.00 + ((Real((Strength of (Hero manipulating item) (Exclude bonuses)))) x 3.50)))
EDIT: haven't tested it, ow and sry I didnt see your edit :)
 
Status
Not open for further replies.
Back
Top