can i change the amount of heal to percentage?

charzhai

New Member
Reaction score
2
some healing skills are heal to amount. how to make the healing skill heal base on percentage?

exp : heal 25% of full life
 

swe_suffer

New Member
Reaction score
20
Use::)
Code:
Unit - Set life of (Target unit of ability being cast) to ((Percentage life of (Target unit of ability being cast)) + 25.00)%
 
S

shadowvzs

Guest
some healing skills are heal to amount. how to make the healing skill heal base on percentage?

exp : heal 25% of full life

yes, go to object editor abilities,and there u can change....

exemple: object editor/abilities/standard abilities/human/units/heal/
and there have
HTML:
Data - hit points gained - 25
click there and enter your amount, (this is a value, not percentage ;))
 
Reaction score
456
Trigger, which heals 25% of targets maximum hit points.

Code:
Heal Percentage
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to <your ability>
    Actions
        Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Max life of (Target unit of ability being cast)) x 0.25))
        -------- Heals 25% of the targets max life. --------

*Fixed
 

charzhai

New Member
Reaction score
2
hero disappear after heal once

Heal Percentage
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to <your ability>
Actions
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Max life of (Target unit of ability being cast)) x 0.25))
-------- Heals 25% of the targets max life. --------

the trigger given i did and it is work..but the hero will disappear after the trigger...even i change the 'Unit - A unit Starts the effect of an ability' to 'Unit - A unit finish casting of an ability' still the same...hero will disappear
 

Cheddar

This is the way it was meant to be.
Reaction score
126
I think it should be

Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + ((Current life of (Target unit of ability being cast)) x 0.25))
 

charzhai

New Member
Reaction score
2
y use 'current' in stead of 'max'?

let the the creep current life = 500/1000
if heal 25% of current life will be 500 * 0.25 + 500 = 625

if heal 25% of max life will be 100 * 0.25 + 500 = 750

the differences only the value...i think wont fix the bugs with the hero missing. But anyway I will try it out.
 

elmstfreddie

The Finglonger
Reaction score
203
Wow, how many people posted the EXACT same thing?
Please, read other posts before YOU post too.
Anyways, to do it use the trigger:
jk
 

AciD

New Member
Reaction score
1
Just to make sure you don't miss that, just make the heal spell do 0 health recovery in object editor and follow their trigger.
 

charzhai

New Member
Reaction score
2
Just to make sure you don't miss that, just make the heal spell do 0 health recovery in object editor and follow their trigger.

i did but the problem still the same...hero will disappear...any other way to heal base on percentage but not using trigger?
 

SerraAvenger

Cuz I can
Reaction score
234
Wow, how many people posted the EXACT same thing?
Please, read other posts before YOU post too.
Anyways, to do it use the trigger:
jk

It were always differet bu with the same effect^^
All the triggers are right xD

just what Cheddar said is wrong. It has to be max.

But what swe_suffer said was the most elegant way ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top