Difference between revisions of "Options Menu"

Jump to navigation Jump to search
884 bytes added ,  14:34, 12 April 2012
m
Added Notes/Revised overview
imported>JustinOther
(Added Menu() function example for larger, looping menus)
imported>JustinOther
m (Added Notes/Revised overview)
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
== Overview ==
== Overview ==
Using [[Show - Message]], it is possible to make an options menu with any number of buttons and/or levels. In these examples, we'll use apparel items, but a menu can be prompted and managed in a number of ways. First off, create a message form and add/fill in its buttons. Note that no more than ten buttons can be offered by any given message box and that the button indices are offset by one such that the first option's index is 0 and not 1.
Using [[Show - Message]], it is possible to make an options menu with any number of buttons and/or levels. This is enabling as one can maintain but a single plugin with an options menu offering multiple configuration setting rather than necessitating multiple versions. In these examples, we'll use apparel items, but a menu can be prompted and managed in a number of ways. First off, create a message(s) form and add/fill in its buttons. Note that no more than ten buttons can be offered by any given message box and that the button indices are offset by one such that the first option's index is 0 and not 1. If offering a lot of options, it's best to think ahead regarding how you want to organize your options, making the message forms first, then plugging them into the script.


== Examples ==
== Examples ==
Line 137: Line 137:


EndFunction</source>
EndFunction</source>
== Notes ==
*Given the buttons in Skyrim are listed from side to side, it is easy to spill over the edges of the user's monitor, particularly if it's a 4:3, in the event either the options are too verbose or there are too many options presented by a single message form. Currently, there's no way to list them from top to bottom as they were in previous Bethesda games. To mitigate this, keep the button text to a minimum and/or make sure to always set up conditions on mutually exclusive buttons to ensure only applicable options are presented.
== See Also ==
== See Also ==
[[Show - Message]]
[[Show - Message]]
Anonymous user

Navigation menu