Difference between revisions of "Options Menu"
→Examples
imported>Threedee |
imported>Threedee |
||
Line 8: | Line 8: | ||
<source lang="papyrus">ScriptName OptionsMenuScript extends ObjectReference | <source lang="papyrus">ScriptName OptionsMenuScript extends ObjectReference | ||
Message Property OptionsMESG Auto ; The Message form that configures the menu buttons | Message Property OptionsMESG Auto ; The Message form that configures the menu buttons | ||
Line 14: | Line 13: | ||
If akNewContainer == Game.GetPlayer(); Only the player | If akNewContainer == Game.GetPlayer(); Only the player | ||
Int iButton = OptionsMESG.Show() ; Shows your menu. | Int iButton = OptionsMESG.Show() ; Shows your menu. | ||
akNewContainer.RemoveItem( | akNewContainer.RemoveItem(self, 1, True) ; Silently remove token | ||
If iButton == 0 ; Mage | If iButton == 0 ; Mage | ||
Debug.Notification("Mage selected") | Debug.Notification("Mage selected") |