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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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