#Health under name don't work

1 messages · Page 1 of 1 (latest)

warm idol
#

on damage:

 set {_health} to floor(health of victim*10)   
 set score "%%" below victim to {_health} for attacker
     
every 1 seconds:
 loop all players:
     world of loop-player is not "Spawn"
     wait 0.1 tick
     set {_health} to floor(health of loop-player*10)   
     loop all players:
         set score "%%" below loop-player-1 to {_health} for loop-player-2```
#

I need that to show the health instead of procent

smoky tigerBOT
#

Thijmen suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

warm idol
#

@fierce meadow

fierce meadow
#

tripple them ```

warm idol
#

done

#

can u ppllslsslssl help

fierce meadow
#

what even is score? I never used it before

warm idol
#

idk I found it on some website

#

but I need it to show health instead of procent

#

fell free to remove score and do smt else

fierce meadow
#

afaik what people usually do is make a text display ride the player using Skbee

warm idol
#

alright

#

ig you can do that if u want

#

@fierce meadow

karmic geode
#

no need to ping them

#

this kinda makes it look like you're asking Thijmen to code it for you..

#

.
It is possible to use scoreboards to display health below names, but I've only ever done that with the vanilla /scoreboard command, far before I discovered skript.

I would suggest filtering for SkBee on the docs, and scrolling through their scoreboard stuff. Notably this, which looks similar to the command (as far as I remember)

warm idol
#

sorry