Open main menu

UESPWiki β

GetButtonPressed

                GetButtonPressed

        Type:   Misc

     Returns:   short

     Example:   short Button
                set Button to GetButtonPressed

     Scripts:   bittercup
                playscript

Returns the user's choice from the previous MessageBox function. If the user hasn't made a choice yet the function returns -1. The first button will return a value of 0, the second 1, and so on.

See Also: MessageBox