So I'm making a shop, and when I try to use the lore of an item (parsed as a number) to find sell value I get a return of <none> please help, here's my Skript.
Code:
on right click:
set {_SellMultiplier} to 1
if lore of held item contains "&7Caught":
set {_Money::1} to 10
if lore of held item contains "&7Caught":
if held item's lore contains "cm":
delete line 2 of held item's lore
set line 1 of held item's lore to regex replace all "cm" with "" in held item's lore
set {_lore::1} to held item's lore
set {_lore::2} to {_lore::1} parsed as a number
set {_lore::3} to round({_lore::2})
send "%{_lore::3}%" to player
add {_lore::3} to player's balance
send "&6$%{_lore::3}% &fwas recieved!!!"
delete {_lore::*}
delete {_Money::*}