#get the amount of players with less than 6 hp

1 messages · Page 1 of 1 (latest)

keen bloom
#

Hey, ive been trying to make a skript to get the amount of players with less than 6 hp within a radius of player, this is my code:

    trigger:
        set {_testlol} to amount of players with less health than 6 within radius 12 of player```

This gives me an error that it cant understand the expression (because of the "players with less health than 6" part), im kinda lost and my brain is blowing up from this so any help is good!
solemn wave
#

either just use a loop and a counter or use the size of/amount expression with a filter

solemn wave
#

did you check the docs first

leaden wigeon
#

all entities where [input != {_p}] is a filter

granite basin
#

you'd have to do it twice, you can break it up into multiple lines, or do it all in one:

set {_list::*} to ({_list::*} where [stuff2])

set {_list::*} to ((%objects% where [stuff]) where [stuff2])```