MessageExAlt
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
This function is an extended version of MessageEx, and enables configuring both the display time, the icon of the message, and a played sound.
The icon and played sound are both optional, and are passed as part of the formatted string, before the actual message text, each suffixed with a bar "|" symbol (see examples below).
- The icon is a path to a DDS image file (relative to ..\Data\Textures).
- The played sound is the Editor ID of a Sound form, and must be prefixed with a $.
Syntax
MessageExAlt displayTime:float messageText:formattedString formatVars(up to 20)
Example
MessageExAlt 4 "Interface\Icons\Message Icons\glow_message_vaultboy_angry.dds|$UIRepGood|Name is %n%rValue is %g" refVar intVar
Other commonly used icons:
- glow_message_vaultboy_in_pain.dds
- glow_message_vaultboy_neutral.dds
- glow_message_vaultboy_sad.dds
- glow_message_vaultboy_surprised.dds
- glow_message_vaultboy_thinking.dds
- glow_message_vaultboy_very_happy.dds
- glow_message_vaultboy_wasteland.dds
Notes
- messageText supports string formatting, and up to 20 variables may be used.
- The interface icon path can be prefixed with # and then a number from 0-6 to show default icons. An example of such would be MessageExAlt 3 "#0|Test". The default icons are:
Number | Icon Path |
Emotion |
---|---|---|
0 | Interface\Icons\Message Icons\glow_message_vaultboy_sad.dds |
Sad |
1 | Interface\Icons\Message Icons\glow_message_vaultboy_neutral.dds | Neutral/Happy |
2 | Interface\Icons\Message Icons\glow_message_vaultboy_angry.dds | Angry |
3 | Interface\Icons\Message Icons\glow_message_vaultboy_thinking.dds | Thinking |
4 | Interface\Icons\Message Icons\glow_message_vaultboy_very_happy.dds | Very Happy |
5 | Interface\Icons\Message Icons\glow_message_vaultboy_surprised.dds | Surprised |
6 | Interface\Icons\Message Icons\glow_message_vaultboy_in_pain.dds | Pain |