#Why is it not adding one to the variable??
1 messages · Page 1 of 1 (latest)
on death:
if victim is a zombie:
if attacker is a player:
if "%victim's name%" is "&a&lLevel 1 Zombie":
cancel the drops
drop 1 green candle of mending 1 named "&x&0&0&f&b&7&3&l[&x&0&0&f&a&7&9&lC&x&0&0&f&9&7&e&lO&x&0&0&f&8&8&4&lM&x&0&0&f&7&8&9&lM&x&0&0&f&6&8&f&lO&x&0&0&f&5&9&5&lN&x&0&0&f&3&9&a&l] &x&0&0&f&2&a&0&lZ&x&0&0&f&1&a&5&lo&x&0&0&f&0&a&b&lm&x&0&0&e&f&b&1&lb&x&0&0&e&e&b&6&li&x&0&0&e&d&b&c&le &x&0&0&e&c&c&1&lD&x&0&0&e&b&c&7&lu&x&0&0&e&a&c&d&ln&x&0&0&e&9&d&2&lg&x&0&0&e&8&d&8&le&x&0&0&e&6&d&d&lo&x&0&0&e&5&e&3&ln &x&0&0&e&4&e&9&lT&x&0&0&e&3&e&e&lo&x&0&0&e&2&f&4&lk&x&0&0&e&1&f&9&le&x&0&0&e&0&f&f&ln" at event-location
if {_zombiedie} is 5:
send title "&a&lCongratulations!" with subtitle "&a&lYou beat level 1!" to the attacker
give {inv::} to the attacker
remove 1 stick of sharpness 1 named " " from the attacker's inventory
execute console command "heal %attacker%"
teleport the attacker to the location at x=10.70, y=-2.00, z=-132.39 in world "%attacker's world%"
set {_zombiedie} to 0
add 6 to {zombiekills.%attacker's uuid%}
wait 3 seconds
send title "&2&lNow for round 2" to the attacker
wait 3 seconds
set {_inv::} to all the items in attacker's inventory
execute console command "clear %attacker%"
give 1 stick of sharpness 3 named " " to the attacker
summon 6 zombies at the attacker:
set name of the zombies to "Level 2 Zombie"
apply potion of weakness of tier 1 to the zombies for 1 hour
if {_zombiedie} is not 5:
add 1 to {_zombiedie}
So basically the
if {_zombiedie} is not 5:
add 1 to {_zombiedie}
part does not work cus its just not adding 1 to the {_zombiedie} variable.
I know this is a case since I made this command to see the value of the variable and it stays at <none>
also I tried my changing it, to the following:
if {_zombiedie} > 5:
and
if {_zombiedie} is 1:
set {_zombiedie} to 2
if {_zombiedie} is not set:
set {_zombiedie} to 1
if {_zombiedie} is 2:
set {_zombiedie} to 3
etc
Just making sure
uh no
what are they?
Look
?
A local variable
As in one that starts with a _
Is a variable that gets auto deleted after the command is done
oh