#problem with gui

1 messages · Page 1 of 1 (latest)

pulsar comet
#

on join player is given choice between these classes. i want the player to not be able to close inventory until they choose a class.
"on inventory close:
if name of event-inventory is "Choose Class":
if {chosenclass::%uuid of player%} is not set
wait 1 tick
open event-inventory to player"
but this doesn't work because when the player chooses the class it opens new gui so it counts as closing the inventory meaning it reopens the gui locking it to the "Chosen Class" gui. is there any other way to do this?

lean heron
#

can you send the code that sets {chosenclass::%uuid of player%} ?

#

it should be setting it when the player selects one, right?

#

so it shouldnt reoppen

#

maybe add a bit more delay

pulsar comet
long acorn
#

You're checking if it closes and reopens if the player didn't select a class then why not just check it the player did select a class but didn't confirm that class?

#

Like {classconfirmation::%uuid of player%}

#

And if that's true then don't reopen the other menu

pulsar comet
#

Oh I think that will work thanks so much

lean heron