This is attached to an autodoc, a message pops up and this script is supposed to define what the options do when you click on them. The menu is there, but the buttons in the menu do nothing, and if i give button 0 a function, it's actions always runs when the message starts. (button 0 is now "Cancel").
edit: sorry, wrong thread description
scn JVaultAutodocScriptshort Buttonbegin OnActivate if IsActionRef player ShowMessage JVaultAutodocMsg endifendbegin MenuMode 1001 if (Button == 1) player.resethealth endif if (Button == 2) player.RestoreAV RadiationRads 1000 endif if (Button == 3) RemoveSpell WithdrawalAlcohol RemoveSpell WithdrawalBuffout RemoveSpell WithdrawalHydra RemoveSpell WithdrawalJet RemoveSpell WithdrawalMentats RemoveSpell WithdrawalMorphine RemoveSpell WithdrawalPsycho RemoveSpell WithdrawalQuantumNukacola RemoveSpell WithdrawalRebound RemoveSpell WithdrawalSteady RemoveSpell WithdrawalTobacco RemoveSpell WithdrawalTurbo endif if (Button == 4) ShowPlasticSurgeonMenu endifend