Hello, I am relatively new to skript. I am having trouble making my combatlog skript due to this one error that I keep stumbling uppon. Here is my code:
on damage:
if {combatlog} is not set:
set {combatlog} to true
if {combatlog} is true:
send "&cYou are now in combat!" to victim and attacker
set {combatlog::%victim's uuid%} to 10
set {combatlog::%attacker's uuid%} to 10
loop until {combatlog::%attacker's uuid%} and {combatlog::%victim's uuid%} = 0:
wait 1 second
decrease {combatlog::%victim's uuid%} by 1
decrease {combatlog::%attacker's uuid%} by 1
send actionbar "&cCombat tag: %{combatlog::%attacker's uuid%}%" to attacker
send actionbar "&cCombat tag: %{combatlog::%victim's uuid%}%" to victim
send "&aYou are no longer in combat!" to victim and attacker
send actionbar "&aYou are no longer in combat!" to victim and attacker
delete {combatlog::%victim's uuid%}
delete {combatlog::%attacker's uuid%}
There is more code underneath this that is not important to what I need help with.
on damage:
if {combatlog} is not set:
set {combatlog} to true
if {combatlog} is true:
send "&cYou are now in combat!" to victim and attacker
set {combatlog::%victim's uuid%} to 10
set {combatlog::%attacker's uuid%} to 10
loop until {combatlog::%attacker's uuid%} and {combatlog::%victim's uuid%} = 0:
wait 1 second
decrease {combatlog::%victim's uuid%} by 1
decrease {combatlog::%attacker's uuid%} by 1
send actionbar "&cCombat tag: %{combatlog::%attacker's uuid%}%" to attacker
send actionbar "&cCombat tag: %{combatlog::%victim's uuid%}%" to victim
send "&aYou are no longer in combat!" to victim and attacker
send actionbar "&aYou are no longer in combat!" to victim and attacker
delete {combatlog::%victim's uuid%}
delete {combatlog::%attacker's uuid%}
There is more code underneath this that is not important to what I need help with.