issue with list variables

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

jedi

Member
Feb 21, 2021
1
0
1
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::*}
 
Code:
set {_winner} to max({boss::*}) # this returns the highest amount of damage dealt
broadcast "test: %{_winner}%" # this returns "<none>"
You did not send us the function. You may have done something wrong in there. (Also, use [ code ] like I did.)
 
Status
Not open for further replies.