it is about a half your age when i last modded somthing, (and i know i'm not good at it) but i wanted to mod somthing again and i ran into an annoying problem.
I want to make a script that asks the player what his favourite school is, the messagebox appears, and everything works fine, but when i click one of the buttons the menu closes(as it should be)... , but then it comes back

I think my problem is somewhere whit the
set button to GetButtonPressedpart.
Can anyone check my script and see what is wrong whit it, cuz i think i have a fun idea :celebration:
Here is my script:
ScriptName 3plusWOTWQuestSCRIPTShort choosingShort button Begin GameMode Set choosing to -1 Setstage 3plusWOWTQuest 10End Begin GameMode If ( choosing == -1 ) if (GetStage 3plusWOWTQuest == 10) MessageBox "What is your favourite magic school?", "Alchemy", "Alteration", "Conjuration", "Destruction", "Illusion", "Mysticism", "Restoration" Set choosing to 1 set button to GetButtonPressed EndifElseIf (Choosing == 1) If ( button == 0 );Alchemy setstage 3plusWOWTQuest 1 Set choosing to 2 ElseIf ( button == 1);alteration setstage 3plusWOWTQuest 2 Set choosing to 2 ElseIf ( button == 2 );Conjuration setstage 3plusWOWTQuest 3 Set choosing to 2 ElseIf ( button == 3 );Destruction setstage 3plusWOWTQuest 4 Set choosing to 2 ElseIf ( button == 4 );Illlusion setstage 3plusWOWTQuest 5 Set choosing to 2 ElseIf ( button == 5 );Mystticism setstage 3plusWOWTQuest 6 Set choosing to 2 ElseIf ( button == 6 );Restoration setstage 3plusWOWTQuest 7 Set choosing to 2 Endif EndIf EndIf End
Thanks for looking
Fire3lf aka Triplus