#health of victim

1 messages · Page 1 of 1 (latest)

wild patrol
#
every 3 ticks:
    loop all entities:
        if loop-entity is a entity:
            if name of loop-entity is "&c%{_health}%&4❤ &8[&71&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&71&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&72&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&72&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&73&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&73&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&74&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&74&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&75&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&75&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&76&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&76&8] &7Zombie &c%{_health}%&4❤"
            if name of loop-entity is "&c%{_health}%&4❤ &8[&77&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&71&8] &7Zombie &c%{_health}%&4❤"
lunar rune
#

Please dont loop all entites every 3 rocks

#

Rocks

#

Ticks

next wasp
#

if loop entity is a entity? that isn't necessary

#

every second would be plenty fast enough

lunar rune
#

Why not just Update the Health when it chances on damage event

wild patrol
#

cause the

 if name of loop-entity is "&c%{_health}%&4❤ &8[&77&8] &7Zombie &c%{_health}%&4❤":

                set name of loop-entity to "&c%{_health}%&4❤ &8[&71&8] &7Zombie &c%{_health}%&4❤"

doesnt work

next wasp
#

exactly, because the health is a different value

worn ridge
#

I would just set a metadata/nbt tag for the entity.
then on damage:, if it's set, update the display name

wild patrol
next wasp
#

you could use metadata tags on the entity for the amount, then no need to check for the amount in the name

wild patrol
#

yh made it work dw

#

also

#

how do i make it so it whenever the player dies the enemies in the arena dies aswell

worn ridge
#

on death of player

#

and then kill them

wild patrol
#

yh i got more arenas

wild patrol
worn ridge
#

is the variable set to an entirty?

wild patrol
#

yh basically

#

cause of this

if {zombiespawned::arena1::zombietier1} is less than 4:
                    summon adult zombie at {spawnerloc::arena1::zombietier1}
worn ridge
#

but

#

that implies the variable is a number
(tracking the quantity of zombies)

#

meaning its not an entity

wild patrol
#

oh yes indeed

#

i am a bit stoopid

#

do i set it to a variable

#

and then kill the variable whenever the player dies/leaves/etc

worn ridge
#

i would add the zombies to a list, and then kill the list

wild patrol
# worn ridge i would add the zombies to a list, and then kill the list
every 1 second:
    loop all players:
        if {arena1::%loop-player's uuid%} = true:
            if {difficulty::%loop-player's uuid%} = 1:
                if {zombiespawned::arena1::zombietier1} is less than 4:
                    summon adult zombie at {spawnerloc::arena1::zombietier1}
                    add 1 to {zombiespawned::arena1::zombietier1}
                    set max health of last spawned zombie to 20
                    set health of last spawned zombie to 20
                    set {_health} to health of last spawned zombie
                    set name of last spawned zombie to "&c%{_health}%&4❤ &8[&71&8] &7Zombie &c%{_health}%&4❤"
                    add last spawned zombie to {arena1::zombiespawned}
#

basically ive done this

#

then when player dies

#

it does kill {arena1::zombiespawned}

#

but it doesnt work

#

any reason why

worn ridge
#

dont loop!!

wild patrol
#

oh should i do

worn ridge
#

use skbee bounds for the arena or something

#

and, you need ::* at the end of a list variable to add stuff to it

wild patrol
#
on join:
  while player is online:
    wait 1 second
     skript
worn ridge
#

(you can also use the spawn section to set the zombies health and such)

worn ridge
worn ridge
#