Background for Starfield
Member of the Debug script
voidfunctionTraceAndBox(stringasTextToPrint, intaiSeverity=0)Global

Description

Wiki Description

Outputs a string to the Papyrus log on disk, the Papyrus overlay, and pops up a message box with the same text.

Documentation String

A convenience function to both throw a message box AND write to the trace log, since message boxes sometimes stack in weird ways and won't show up reliably.


Parameters

  1. stringasTextToPrint

    CK Wiki Description

    The text that should be printed to the log and text page.

  2. intaiSeverity=0

    CK Wiki Description

    The severity of the trace statement. Info, the default, shows up as green; warnings will show up as yellow; and errors as red; in the Papyrus debug text page.

    • The following values are acceptable:* 0:Info
      • 1:Warning
      • 2:Error

Examples

; Output "Hello World" to the log and a message box
Debug.TraceAndBox("Hello, World!")
; Output "Hello World" to the log at error severity, and show a message box
Debug.TraceAndBox("Hello, World!", 2)

Auto-Generated Example

string myString__asTextToPrint
int myInt__aiSeverity

Debug.TraceAndBox(myString__asTextToPrint, myInt__aiSeverity)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.