1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Error

Discussion in 'Skript' started by C_Chino51, Jan 13, 2020.

Thread Status:
Not open for further replies.
  1. C_Chino51

    C_Chino51 Member

    Joined:
    Jan 8, 2020
    Messages:
    1
    Likes Received:
    0
    [14:04:18 ERROR]: [Skript] {_c} can only be set to one object, not more (shop.sk, line 183: set {_c} to lore of click item')


    What should I do?
     
  2. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    402
    Likes Received:
    28
    Send us your code
    --- Double Post Merged, Jan 14, 2020, Original Post Date: Jan 13, 2020 ---
    Looking at the line of code provided by the error, it won't let you set {_c} to that item because it has more than 1 in that slot. Try doing this:
    Code (Text):
    1. add click item to {c::*}
     
    • Funny Funny x 1
  3. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,488
    Likes Received:
    95
    Medals:
    Lore is a list, so you need to store it in a list variable.
     
    • Agree Agree x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,173
    Likes Received:
    199
    Not really sure what you read there but you're way off.

    The issue is the lore, as TP said, lore is a list, soooo....
    Code (Skript):
    1. set {_c::*} to lore of player's tool
     
Thread Status:
Not open for further replies.
Loading...