Hi there,
I have a duels skript set up on my server, and the effect "add 1 to {variable}" won't work.
Here's my code:
The part that isn't working is "add 1 to {sumoWins.%{lastAttacked.%victim%}%}"
Everything else in the trigger is working, for exampel warping both players to spawn, and broadcasting the death message.
Any ideas why it isn't working?
I have a duels skript set up on my server, and the effect "add 1 to {variable}" won't work.
Here's my code:
Code:
on damage:
if attacker is a player:
set {lastAttacked.%victim%} to "%attacker%"
stop
on damage:
damage cause is fall:
if {induel.%victim%} is true:
if {induel.%{lastAttacked.%victim%}%} is true:
execute console command "/warp Lobby %victim%"
execute console command "/warp Lobby %{lastAttacked.%victim%}%"
heal victim
heal {lastAttacked.%victim%}
execute console command "/minecraft:scoreboard players add %{lastAttacked.%victim%}% Wins 1"
add 1 to {sumoWins.%{lastAttacked.%victim%}%}
broadcast "{@prefix} &e%{lastAttacked.%victim%}% &7beat &e%victim% &7in a duel."
set {bd.active.%victim%} to false
set {bd.active.%{lastAttacked.%victim%}%} to false
delete {arena.1}
The part that isn't working is "add 1 to {sumoWins.%{lastAttacked.%victim%}%}"
Everything else in the trigger is working, for exampel warping both players to spawn, and broadcasting the death message.
Any ideas why it isn't working?