MessageEx

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Similar to ShowMessage but accepts a string directly rather than via a message form. Variables can be passed using string formatting, or string variables via ToString ($).

Syntax

[help]
(none) MessageEx string:formatable 

Example

MessageEx "This message will be shown in the top left of the screen in game"
int X
...
MessageEx "Sunny's name is %n, and the value of X is %g" SunnyREF, X

string_var my_string
let my_string := "Use $ to convert string_vars, etc to strings"
...
MessageEx $my_string

Notes

  • Unlike ShowMessage, the icon and duration can not be specified, and are always default.
  • MessageExAlt, a function from the JIP NVSE Plugin, may be used to specify the icon and duration.

See Also