Difference between revisions of "MessageEx"

Jump to navigation Jump to search
275 bytes removed ,  04:28, 27 January 2008
Rearranged, changed example a bit
imported>Haama
(Created)
 
imported>Haama
(Rearranged, changed example a bit)
Prints a formatted message to the top-left corner of the screen. Uses the same variable types as [[Message]] and several more listed below.
 
'''Example'''
==Notes==▼
*As well as the normal variable types, several new variables types have been added:▼
**%i - prints the formID of a reference or object▼
**%k - prints a string representing the key associated with a DirectInput scan code▼
**%n - prints the name of a reference or object▼
**%r - prints a newline▼
**%c - prints the name of a component within another object. Takes two arguments - an object (ref) and the index of the component you want to access (short). Supported object types:▼
***Magic Item - prints the name of the nth effect item.▼
***Faction - prints the male rank title of the nth rank.▼
**Also, you can now use up to 20 variables.
**Example (note that due to wiki limitations, the MessageboxEX line has been split into two):
<pre> ref refVar1
ref refVar2
short keyCode
short goldCost
...
set refVar1 to AdrianDecanusREF
set refVar2 to ShadySamREF
set keyCode to GetControl 15 ; menu key, assuming 'Tab' (15)
set goldCost to 500
 
MessageBoxEXMessageEX "Press %k to summon a companion %n %rCost: %g gold|%n|%n|Cancel" keyCode refVar1 goldCost</pre>
keyCode goldCost refVar1 refVar2</pre>
prints out
<pre> Press TAB to summon a companion Adrian Decanus
Cost: 500 gold</pre>
 
[Adrian Decanus]
▲==Notes==
[Shady Sam]
▲*As well as the normal variable types, several new variables types have been added:
[Cancel]</pre>
▲**%i - prints the formID of a reference or object
▲**%k - prints a string representing the key associated with a DirectInput scan code
▲**%n - prints the name of a reference or object
▲**%r - prints a newline
▲**%c - prints the name of a component within another object. Takes two arguments - an object (ref) and the index of the component you want to access (short). Supported object types:
▲***Magic Item - prints the name of the nth effect item.
▲***Faction - prints the male rank title of the nth rank.
 
==See Also==
Anonymous user

Navigation menu