Background for Skyrim SE
Member of the SkyMessage script
intfunctionGetResultIndex(intmessageBoxId, booldeleteResultOnAccess=true)NativeGlobal

Description

Documentation Comment

Returns the result index from a message box created using Show_NonBlocking() or ShowArray_NonBlocking()

If IsMessageResultAvailable is false or the messageBoxId is invalid, this returns -1
else it returns the int index of the button which was selected.

Note: calling this function cleans up the stored messageBox and it will no longer be available
unless you pass deleteResultOnAccess = false


Parameters

  1. intmessageBoxId

  2. booldeleteResultOnAccess=true


Examples

Auto-Generated Example

int myInt__messageBoxId
bool myBool__deleteResultOnAccess

int returnedValue = SkyMessage.GetResultIndex(myInt__messageBoxId, myBool__deleteResultOnAccess)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.