Skript Vanilla GUIs

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

So I recently started using vanilla guis, but I seem to have come across a problem. When making two guis, in separate .sk files, the guis become interlinked.


My first one is a banker gui-

https://pastebin.com/KsmEwtuv


Second one is a punishment gui-

https://pastebin.com/6isGZyAA


For some reason... when pressing the 12th slot or 14th slot in the punishment gui it does what the banker gui has set.

Well that is an odd way of checking the inventory, please follow the tutorial and see if that works
 
Is there a way while making the GUI to loop all slots and check if they're empty? and when they're empty, add something there?
 
It is so long, but I already put "cancel event" under ALL tab of my custom GUIs, without considering the click type.
Even if I do something like this:

Code:
on inventory click:
    if event-inventory is not player's inventory:
        if event-click type = left mouse button:
            cancel event
            # Generate some GUI shits
        else:
            cancel event
or this:
Code:
on inventory click:
    if event-inventory is not player's inventory:
        cancel event
        # Generate some GUI shits
you do know you can read the codes they showing right? it literlly shows a way if event click is right to cancel event, do smh similiar