Problem With Lore

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

rustedst

Active Member
Apr 24, 2020
97
4
8
Istanbul, Turkey
I have something like this:
Code:
on event1:
    give player paper named "example" with lore "example2"
on event2:
    if player's tool is paper with lore "example2":
        do something
No errors, no warning messages. Event1 works, but event2 doesn't. When I try this in game, nothing happens. I tried putting an "else" and it ran the command under "else". What's the problem?
 
try this
Code:
on event2:
    if player's tool is a paper:
        if lore of player's tool is "example2":
            do something
 
Thanks, I found out what's wrong. I should mention paper's name. Like this:
Code:
on event1:
    give player paper named "example" with lore "example2"
on event2:
    if player's tool is paper named "example" with lore "example2":
        do something
 
Status
Not open for further replies.