Difference between revisions of "MessageEx"
Jump to navigation
Jump to search
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.▼
<pre> ref refVar1
short keyCode
short goldCost
...
set refVar1 to AdrianDecanusREF
set keyCode to GetControl 15 ; menu key, assuming 'Tab' (15)
set goldCost to 500
prints out
<pre> Press TAB to summon
Cost: 500 gold</pre>
▲==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.
==See Also==
| |||