2 Rows of Hearts

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TullyMastully

Member
Aug 9, 2017
38
0
0
33
Hey,
I wanted to know if it's possible to do 2 Rows of hearts in Skript, and if so, How?


Thanks in advance,
Tully.
 
You could always give the player health boost 5 for 999 days

code_language.skript:
apply health boost 5 to the player for 999 days

You could also repeat the effect on the player when he respawns, using the on respawn event; and every time he drinks milk, wait a second then repeat the health boost effect.

You can also set the Max health of an entity with this expression
191abc4e20.png

Oh. The more you know. That may prove useful for me, too. Thanks :emoji_stuck_out_tongue:
 
Last edited by a moderator:
You can also set the Max health of an entity with this expression
191abc4e20.png
Is there a way to save the amount of hearts they have? Like if they joining having a maximum health of 15 and do a quest rewarding them an extra heart then logoff, could the maximum health of 16 be saved using on leave?
 
Is there a way to save the amount of hearts they have? Like if they joining having a maximum health of 15 and do a quest rewarding them an extra heart then logoff, could the maximum health of 16 be saved using on leave?
you could save the amount to a player specific variable or make it permission based but you would have to set it on join
 
Is there a way to save the amount of hearts they have?
Everything can be set to a variable.
code_language.skript:
set {health.%player%} to 42
set the maxinum health of the player to {health.%player%}
When you complete the quest, update the variable and the health. Easy.
 
you could save the amount to a player specific variable or make it permission based but you would have to set it on join
Everything can be set to a variable.
code_language.skript:
set {health.%player%} to 42
set the maxinum health of the player to {health.%player%}
When you complete the quest, update the variable and the health. Easy.
Ok, but would there be a way to update their maximum health without having like a timer running checking every 30 seconds each players {health.%player%}?
 
Ok, but would there be a way to update their maximum health without having like a timer running checking every 30 seconds each players {health.%player%}?
once you've set their health it wont change unless they leave. so you can avoid the timer by just having it set on join and update when the quest is done like XUnidentified said
 
once you've set their health it wont change unless they leave. so you can avoid the timer by just having it set on join and update when the quest is done like XUnidentified said
Everything can be set to a variable.
code_language.skript:
set {health.%player%} to 42
set the maxinum health of the player to {health.%player%}
When you complete the quest, update the variable and the health. Easy.
Ok, thank you both for the help and sorry for hijacking this thread
 
  • Like
Reactions: xUndefined
Status
Not open for further replies.