I'm having an issue where I have a variable which is set by using the lore of the sword (example Strength 1 sets the damage to 1) and if I set the damage with that variable it deals no damage, but when I send the variable to the player it returns the number on the lore
Can someone please help?
code_language.skript:
command /sword <number>:
permission: op
trigger:
if player's tool is any sword:
set lore of player's tool to "&7&7Strength &a%arg-1%"
on damage:
if attacker is a player:
if attacker's tool is any sword:
set {_split::*} to uncoloured line 1 of attacker's tool's lore split at " "
set damage to {_split::2}
send {_split::2} to attacker