Jump to content

How do I save something in a gui?


nampers

Recommended Posts

I have made a skript where you can create a 1v1 and someone can join it but the 1v1 only shows up for the player that posted it and it only shows up once and I don't know why. I think I need to use a list or a variable.

 

code:

 

command 1v1:
    aliases: 1
    trigger:
        set {_start1V1} to chest inventory named "&3Open 1v1's"
        open {_start1V1} to player
        set slot 26 of {_start1V1} to Lime dye named "&2Create a 1v1"
            
on inventory click:
    if name of event-inventory = "&3Open 1v1's":
        if index of event-slot = 26:
            set {_1v1} to chest inventory named "&3Create a 1v1"
            set slot 13 of {_1v1} to dirt
            open {_1v1} to player
            
on inventory click:
    if name of event-inventory = "&3Create a 1v1":
        if index of event-slot = 13:
            set {_start1V1} to chest inventory named "&3Open 1v1's"
            set slot 2 of {_start1V1} to Magenta dye named "%player%'s 1v1 1/2"
            open {_start1V1} to player
                      

            

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...