if attacker is player:
if victim is player:
set {combattimer::%attacker's uuid%} to 20
if {combattimerloop::%attacker's uuid%} isn't true:
set {combattimerloop::%attacker's uuid%} to true
while {combattimer::%attacker's uuid%} > 0:
remove 1 from {combattimer::%attacker's uuid%}
send action bar "&cʏᴏᴜ ᴀʀᴇ ɪɴ ᴄᴏᴍʙᴀᴛ ꜰᴏʀ %{combattimer::%attacker's uuid%}% ѕᴇᴄᴏɴᴅѕ. ᴅᴏ ɴᴏᴛ ʟᴏɢ ᴏᴜᴛ" to attacker
wait 1 second
delete {combattimerloop::%attacker's uuid%}
delete {combattimer::%attacker's uuid%}
on damage:
if attacker is player:
if victim is player:
set {lasthit::%victim's uuid%} to attacker
set {combattimer::%victim's uuid%} to 20
if {combattimerloop::%victim's uuid%} isn't true:
set {combattimerloop::%victim's uuid%} to true
while {combattimer::%victim's uuid%} > 0:
remove 1 from {combattimer::%victim's uuid%}
send action bar "&cʏᴏᴜ ᴀʀᴇ ɪɴ ᴄᴏᴍʙᴀᴛ ꜰᴏʀ %{combattimer::%victim's uuid%}% ѕᴇᴄᴏɴᴅѕ. ᴅᴏ ɴᴏᴛ ʟᴏɢ ᴏᴜᴛ" to victim
wait 1 second
delete {combattimerloop::%victim's uuid%}
delete {combattimer::%victim's uuid%}
delete {lasthit::%victim's uuid%}
on load:
loop all players:
delete {combattimerloop::%player's uuid%}
delete {combattimer::%player's uuid%}
delete {lasthit::%player's uuid%}```
#I can't get my Combatlog to work properly
1 messages · Page 1 of 1 (latest)
if {combattimerloop::%victim's uuid%} is true:
if attacker isn't {lasthit::%victim's uuid%}:
send "&aʏᴏᴜ ʜᴀᴠᴇ ʀᴇᴄᴇɪᴠᴇᴅ $%MoneySyntax(victim's balance)% ꜰʀᴏᴍ ᴋɪʟʟɪɴɢ %victim%" to {lasthit::%victim's uuid%}
add victim's balance to {lasthit::%victim's uuid%}'s balance
if attacker is {lasthit::%victim's uuid%}:
send "&aʏᴏᴜ ʜᴀᴠᴇ ʀᴇᴄᴇɪᴠᴇᴅ $%MoneySyntax(victim's balance)% ꜰʀᴏᴍ ᴋɪʟʟɪɴɢ %victim%" to attacker
add victim's balance to attacker's balance
delete {combattimerloop::%victim's uuid%}
delete {combattimer::%victim's uuid%}
set victim's balance to 0```
it only seems to be trying to do the first of the attacker if statements
if i put anything after it, it just doesn't do anything
unless it gets activated