So I got sick and tired of doing nothing at the Arcane University, and decided to revive an idea of creating a small university program within the building proper. The program includes several "exams" which must be administered through Message Boxes.
Only problem is, I've never dealt with Multi-Layered Message Boxes before, much less the fact that there are nearly 20 of them in sequence. So I started a script up, but for some reason it runs improperly and I can't tell why.
Begin OnActivateif IsActionRef player == 1 && DoOnce == 0 MessageBox "Once you begin the test, you cannot stop until you finish the last question. Are you ready to begin?", "No" "Yes" set Doonce to 1 set Button to -1endifEndBegin Gamemodeset Button to GetButtonPressedif ( Button == 1 ) && ( DoOnce == 1 )MessageBox "What is Spellcraft?", "The study of casting and working spells""The act of casting and working spells""The ability to cast and work spells"set Button1 to GetButtonPressedelseif ( Button == 0 )set Doonce to 0endifendifif ( Button1 == 2 ) && ( DoOnce == 1 )set ButtonPressed1 to 1set rightanswer to rightanswer + 1elseif ( Button1 == 1 )set ButtonPressed1 to 1elseif ( Button1 == 0 )set ButtonPressed1 to 1endifendifendifif ButtonPressed1 == 1 && ( DoOnce == 1 )MessageBox "Finish the sentence: Never forget that Magicka...", "is both beneficial and detrimental""is a power of its own accord""is unfit for mortals"set Button2 to GetButtonPressedset ButtonPressed1 to 2endif
Any help?
Thank you,
Kroot