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❤"
#health of victim
1 messages · Page 1 of 1 (latest)
if loop entity is a entity? that isn't necessary
every second would be plenty fast enough
Why not just Update the Health when it chances on damage event
okay yh
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
exactly, because the health is a different value
I would just set a metadata/nbt tag for the entity.
then on damage:, if it's set, update the display name
if name of loop-entity contains "&8[&77&8] &7Zombie"
you could use metadata tags on the entity for the amount, then no need to check for the amount in the name
yh made it work dw
also
how do i make it so it whenever the player dies the enemies in the arena dies aswell
yh i got more arenas
n this doesnt work
kill {zombiespawned::arena1::zombietier1}
is the variable set to an entirty?
yh basically
cause of this
if {zombiespawned::arena1::zombietier1} is less than 4:
summon adult zombie at {spawnerloc::arena1::zombietier1}
but
that implies the variable is a number
(tracking the quantity of zombies)
meaning its not an entity
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
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
dont loop!!
oh should i do
use skbee bounds for the arena or something
and, you need ::* at the end of a list variable to add stuff to it
on join:
while player is online:
wait 1 second
skript
(you can also use the spawn section to set the zombies health and such)
ohh damnn
you can put a bound around the arena, and then trigger an event when a player enters
i never knew that
like
on region enter
skript