When i click on a hoe with 3 lores set with a knowledge book, it sends "4 is the next free spot" but it doesn't set the line to "Yes"
Code:
on inventory click:
if clicked item is hoe:
if clicked cursor is knowledge book:
set {_l} to 1
while line {_l} of clicked item's lore is set:
if line {_l} of clicked item's lore is set:
add 1 to {_l}
if line {_l} of clicked item's lore is not set:
set the {_l}st line of clicked item's lore to "Yes"
send "%{_l}% is the next free spot"
exit loop