Solved Books

  • 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.

bobby

Active Member
Jan 28, 2017
61
0
6
26
I have
code_language.skript:
    loop items in player's inventory:
      loop-item is a written book:
        name of loop-item is "&cWelcome book":
          author of loop-item is "%player%":
            send "&4&oERROR"
            stop
    give player written book titled "&cWelcome book", by "%player%", pages "page 1"
But it just keeps giving books, even when I have one already in my inventory.
I want it to stop giving books if I have atleast one in my inventory.
 
I have
code_language.skript:
    loop items in player's inventory:
      loop-item is a written book:
        name of loop-item is "&cWelcome book":
          author of loop-item is "%player%":
            send "&4&oERROR"
            stop
    give player written book titled "&cWelcome book", by "%player%", pages "page 1"
But it just keeps giving books, even when I have one already in my inventory.
I want it to stop giving books if I have atleast one in my inventory.
Well that means that at least 1 of the conditions is false. You can insert broadcasts at different spots to see which conditions are not true.
 
  • Like
Reactions: bobby
Well that means that at least 1 of the conditions is false. You can insert broadcasts at different spots to see which conditions are not true.
It was name of loop-item is "&cWelcome book": that was blocking it from working. Is there any other way to fix that?
 
Status
Not open for further replies.