here is my code, the comments explain my issue
also for some reason the indentations don't display properly so ignore that
on damage:
if attacker is a player:
if victim is a zombie:
add damage to {boss::%attacker%}
# this returns the amount of damage I've dealt so far
broadcast "%{boss::%attacker%}%"
set {damage::%damage%} to attacker
# this returns my username
broadcast "%{damage::%damage%}%"
on join:
set {boss::%player%} to 0
on death:
if victim is a zombie:
set {_winner} to max({boss::*})
# this returns the highest amount of damage dealt
broadcast "test: %{_winner}%"
# this returns "<none>"
broadcast "test: %{damage::%{_winner}%}%"
delete {boss::*}
also for some reason the indentations don't display properly so ignore that
on damage:
if attacker is a player:
if victim is a zombie:
add damage to {boss::%attacker%}
# this returns the amount of damage I've dealt so far
broadcast "%{boss::%attacker%}%"
set {damage::%damage%} to attacker
# this returns my username
broadcast "%{damage::%damage%}%"
on join:
set {boss::%player%} to 0
on death:
if victim is a zombie:
set {_winner} to max({boss::*})
# this returns the highest amount of damage dealt
broadcast "test: %{_winner}%"
# this returns "<none>"
broadcast "test: %{damage::%{_winner}%}%"
delete {boss::*}