Difference between revisions of "Options Menu"

Jump to navigation Jump to search
104 bytes removed ,  05:47, 29 April 2012
m
no edit summary
imported>Archerkb
(added a link to the papyrus tutorial page showing how to assign user-created messageboxes as values to the message box properties defined in the sample scripts here)
imported>JustinOther
m
Line 40: Line 40:
Event OnRead()
Event OnRead()


Game.DisablePlayerControls(False, False, False, False, False, True) ; Momentarily disable other menus
Game.DisablePlayerControls(abMenu = True) ; Momentarily disable other menus
Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls
Game.EnablePlayerControls(abMenu = True) ; Undo DisablePlayerControls
Menu()
Menu()
Line 86: Line 86:


If akActor == Game.GetPlayer()
If akActor == Game.GetPlayer()
Game.DisablePlayerControls(False, False, False, False, False, True) ; Momentarily disable other menus
Game.DisablePlayerControls(abMenu = True) ; Momentarily disable other menus
Game.GetPlayer().EquipItem(MenuARMO, True, True) ; Prevent unequip/reequip in favorites until the current menu is resolved
Game.GetPlayer().EquipItem(MenuARMO, True, True) ; Prevent unequip/reequip in favorites until the current menu is resolved
Utility.Wait(0.01) ; This ensures equipping the token from the favorites menu works
Utility.Wait(0.01) ; This ensures equipping the token from the favorites menu works
Game.GetPlayer().UnequipItem(MenuARMO, False, True) ; Silently unequip item
Game.GetPlayer().UnequipItem(MenuARMO, False, True) ; Silently unequip item
Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls
Game.EnablePlayerControls(abMenu = True) ; Undo DisablePlayerControls
Menu()
Menu()
EndIf
EndIf
Anonymous user

Navigation menu