code_language.skript:
set {checker1.%player%::*} to lore of clicked item split at " " parsed as a number
set {checker2.%player%::*} to lore of cursor item split at " " parsed as a number
if {checker1.%player%::*} minus {checker2.%player%::*} is equal to 1:
Essentially I want to make it so if a pickaxe has Smelt 1 in the lore of the item, and I try to put an enchant on it, let's say Smelt 3, it wouldn't work because it would have to go through the steps, e.g. Smelt 1, Smelt 2, Smelt 3. I'm not sure how to do this because I would need to set something to the number in the lore of the clicked item, e.g. set {test.%player%} to all numbers in lore of cursor item, but that does not work as I have already tried. Thanks to anybody who helps!