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?
#problem with gui
1 messages · Page 1 of 1 (latest)
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
When you click one of the classes there is a confirm gui so it will still reopen because {chosenclass::%uuid of player%} is still not set
Why not just do the same thing u did for the first gui?
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
Oh I think that will work thanks so much
then set a variable and delete it when the player selects chosenclass