Difference between revisions of "Template:OBSE Format Specifiers"

Jump to navigation Jump to search
Add %e and example
imported>Scruggs
(changed title etc)
imported>Scruggs
(Add %e and example)
Line 26: Line 26:


'''%v''' - Prints the actor value (i.e. an attribute or skill) associated with the passed actor value code.
'''%v''' - Prints the actor value (i.e. an attribute or skill) associated with the passed actor value code.
'''%e''' - Provides a workaround for the script compiler's refusal to accept an empty string as a command argument.
* Example:
SetNameEx ""  ; attempts to remove an object's name, but won't compile
SetNameEx "%e" ; sets the name to an empty string


'''%{...%}''' - Conditionally displays or omits the bracketed portion of the format string based on a boolean value. Accepts a variable - if the value of the variable is zero, all text and parameters up to the matching right bracket will be ignored. Otherwise the bracketed text will be displayed.
'''%{...%}''' - Conditionally displays or omits the bracketed portion of the format string based on a boolean value. Accepts a variable - if the value of the variable is zero, all text and parameters up to the matching right bracket will be ignored. Otherwise the bracketed text will be displayed.
Anonymous user

Navigation menu