Is it possible to edit how many hearts show?

  • 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 community!

    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.

Juppi

New Member
Jun 5, 2017
7
0
0
I need the limit the amount of hearts shown, but not the max health, Do to i have a system that allows players to have over 1000 Health. So the amount of heart rows gets way to out of hand, Is there a way to limit the max hearts showing at once?
[doublepost=1516073826,1516073733][/doublepost]Welp, I noticed to use "Health" as a search instead of Heart Ops <,<
"%players%'s scaled health"

Edit:


code_language.skript:
every 5 ticks:
    set %players%'s scaled health to 20

how would i get somthing like this to work?
 
Last edited:
Looks like that expression or whatever requires the addon Skquery. I did something similar, but I just reduced damage. So if someone has 1000 health, damage gets divided by 50. I don't think there's a functional difference, but that depends on fractions of health damage being recorded by the game, but I'm not 100% sure on that.
 
Yea, Im using Skquery but still get a cant understand condition / effect.
 
You don't have to set it every 5 ticks, just do it when they join. Also, you don't use percent signs unless you're trying to stringfy a expression, i.e.:
code_language.skript:
set {_test} to "%player's boots%" #stringfied expression
set player's boots to diamond boots #normal usage
By the way, if you find %player% or similar in the syntaxes at the documentation, it's because you have to replace it with the type specified within the %'s, i.e.:

code_language.skript:
%players%'[s] bed[s] [location[s]]

#would be written as

set {_test::*} to all players' bed locations
#or
set victim's bed to event-location #assuming victim is a player
 
Last edited:
Yea. Got it too work. Been way to long since ive working on skript so im back to learning status ;-;
 
Status
Not open for further replies.