I can't find a way to make skript do things on a player that is set inside a variable
Heres code:
on death of player:
broadcast "%{lastdamager.%victim's uuid%}%"
if {bounty.%victim's uuid%} is not 0:
if {lastdamager.%victim's uuid%} is set:
broadcast "%{lastdamager.%victim's uuid%}%"
set {victimsattacker} to {lastdamager.%victim's uuid%}
set {bounty.%victim's uuid%} to 0
add {bounty.%victim's uuid%} to {victimsattacker}'s balance
send "&aSuccesfully claimed bounty of %{player}%, consisting of %{cash}%$." to {victimsattacker}
Its general purpose is to give the bounty to the last player who attacked if the victim is in combat ( 12s after a hit ), the only problem is with the last two lines, I've tried doing {victimsattacker}, %{victimsattacker}%, "%{victimsattacker}%" but the first one doesnt work, while the latter two give errors.
Heres code:
on death of player:
broadcast "%{lastdamager.%victim's uuid%}%"
if {bounty.%victim's uuid%} is not 0:
if {lastdamager.%victim's uuid%} is set:
broadcast "%{lastdamager.%victim's uuid%}%"
set {victimsattacker} to {lastdamager.%victim's uuid%}
set {bounty.%victim's uuid%} to 0
add {bounty.%victim's uuid%} to {victimsattacker}'s balance
send "&aSuccesfully claimed bounty of %{player}%, consisting of %{cash}%$." to {victimsattacker}
Its general purpose is to give the bounty to the last player who attacked if the victim is in combat ( 12s after a hit ), the only problem is with the last two lines, I've tried doing {victimsattacker}, %{victimsattacker}%, "%{victimsattacker}%" but the first one doesnt work, while the latter two give errors.