Set lore of item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ImMeh

Member
Jul 14, 2019
11
0
1
21
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
 
Try to remove (st) in "set the {_l}st line of clicked item's lore to "Yes"".
 
Code:
set the {_l} line of clicked item's lore to "Yes"
It gives me the error
Code:
Can't understand this condition/effect: set the {_l} line of clicked item's lore to "Yes"
 
Doesn't work. Even if i replace {_l} with 4 which is not set, it doesn't change anything. If i change it to 3 which is set, it still does nothing.
 
Status
Not open for further replies.