Difference between revisions of "Template:OBSE Format Specifiers"

no edit summary
imported>Darkness X
imported>UDUN
Line 8: Line 8:
:* In OBSE versions prior to v0014a, %n can crash if the object's name contains a percent sign.
:* In OBSE versions prior to v0014a, %n can crash if the object's name contains a percent sign.


'''%i''' - Prints the formID of the specified reference or object.
'''%i''' - Prints the formID of the specified reference or object. GOTCHA : as of v18, if a refVar is passed which points to a ref not loaded in memory %i will print 00000000 ''even if the refVar is not empty''.


'''%k''' - Prints the name of the key for the specified DirectInput scancode, such as those used for [[IsKeyPressed2]].
'''%k''' - Prints the name of the key for the specified DirectInput scancode, such as those used for [[IsKeyPressed2]].
Line 25: Line 25:
'''%q''' - Prints a double quote character.
'''%q''' - Prints a double quote character.


'''%a''' - Prints the character corresponding to the specified ASCII code. Passing codes for unprintable characters (such as 0) may have unpredictable (though occassionally useful) results. Passing the code for a percent sign will most likely crash the game as literal percent signs must come in pairs.
'''%a''' - Prints the character corresponding to the specified ASCII code. Passing codes for unprintable characters (such as 0) may have unpredictable (though occasionally useful) results. Passing the code for a percent sign will most likely crash the game as literal percent signs must come in pairs.


'''%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.
Anonymous user