Difference between revisions of "Options Menu"
Jump to navigation
Jump to search
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( | Game.DisablePlayerControls(abMenu = True) ; Momentarily disable other menus | ||
Game.EnablePlayerControls( | Game.EnablePlayerControls(abMenu = True) ; Undo DisablePlayerControls | ||
Menu() | Menu() | ||
Line 86: | Line 86: | ||
If akActor == Game.GetPlayer() | If akActor == Game.GetPlayer() | ||
Game.DisablePlayerControls( | 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( | Game.EnablePlayerControls(abMenu = True) ; Undo DisablePlayerControls | ||
Menu() | Menu() | ||
EndIf | EndIf |