Difference between revisions of "Options Menu"

Jump to navigation Jump to search
72 bytes removed ,  23:29, 3 July 2012
imported>Threedee
imported>Threedee
Line 8: Line 8:
<source lang="papyrus">ScriptName OptionsMenuScript extends ObjectReference
<source lang="papyrus">ScriptName OptionsMenuScript extends ObjectReference


Armor Property MenuARMO Auto ; The token that holds the menu script
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(MenuARMO, 1, True) ; Silently remove token
akNewContainer.RemoveItem(self, 1, True) ; Silently remove token
If iButton == 0  ; Mage
If iButton == 0  ; Mage
Debug.Notification("Mage selected")
Debug.Notification("Mage selected")
Anonymous user

Navigation menu