Jump to content
  • 0
LordJasz

[Item Script] Low HP Trigger

Question

Can someone help me with a script for a item?

What I want is:
Script Basic for the Items
When a player suffer damage and  reach 'X'% HP he's healed by 'Y'% HP.

And...
If possible a buff trigger for the same item but 3 versions (3 different items but with the same above script + script below).

Like: 
Item 1: Heal 'Y'% HP + Cast : Kyrie Eleison [Lv. 10]
Item 2: Heal 'Y'% HP + Cast : Safety Wall [Lv. 10] (no need gems)
Item 3: Heal 'Y'% HP + Cast Blessing [Lv.10] + AgiUp [Lv. 10]
Trigger CoolDown: 5 Minutes

Is it possible?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
7 hours ago, rans said:

you can put like  if(Hp < threshold) { do this}

how can make HP% instead HP and how can I create a delay for the trigger?

didn't find anything on script_commands.txt

thx

Share this post


Link to post
Share on other sites
  • 0

Hi, everything you need is in the Doc folder of herc. 
how can you make to base on %? its in the DOC. (MaxHp)

this example is using 5%

set t, MaxHp * 0.05;
while(Hp <  t){
do this
sleep for cooldown or you can use gettimetick just read the docs.
}
Edited by rans

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.