Solved Can't understand this condition/effect: open an anvil gui named "PIN" to player

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

May 22, 2024
3
0
1
18
This is the code

Code:
on right click on bookshelf:
    if player's tool is book:
        if {cdc::%player%::make} is not set:
            send message "&eNon possiedi una Carta Di Credito" to player
        else:
            if {cdc::carta::%player%::pin} is set:
                open an anvil gui named "PIN" to player
 
why would you have an else...and then check...the opposite condition...which the else already did?
Also this syntax requires what you set the gui first (it also requires Skript-AnvilGUI 1.3+)
AppleScript:
set {_gui} to a new anvil gui named "&e"

#stuff

open anvil gui {_gui} to player

You should instead use base skript syntax:
AppleScript:
open anvil inventory named "Beans" to player
 
I literally...just explained...the entire thing. But it couldn't have possibly loaded that fast so I'm assuming you're already replying to your original post-