How to remove line <number> of lore of pick up items

  • 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 community!

    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.

gogo

Member
Oct 21, 2017
1
0
0
code_language.skript:
on pick up:
    lore of event-item contains "%UUID of player%"
    remove "%UUID of player%" from lore of event-item

This is Skript I wrote.
You can only pick up items that contain your UUID in Lore and delete your UUID from the Lore of the item you picked up.
But, an error is displayed on the third line.
code_language.skript:
the lore of event-item type can't have anything removed from it
Please tell me the solution to someone's problem.

As I wrote this question using Google Translate, English may be strange.
 
I may be incorrect but I believe you would have to set the lore line rather than remove something from it. So if it's,say, your 2nd line of lore that contains the uuid you could set line 2 of the lore of the event-item to " " or something like that.
 
Status
Not open for further replies.