Difference between revisions of "GetFormIDString"
Jump to navigation
Jump to search
imported>Odessa (created) |
imported>Jazzisparis |
||
Line 19: | Line 19: | ||
*You can use this to convert a form to a string/int for use as an array map key. However, beware that FormIDs may change on game load, dependent on load order. | *You can use this to convert a form to a string/int for use as an array map key. However, beware that FormIDs may change on game load, dependent on load order. | ||
==See Also== | ==See Also== | ||
*[[StringToRef]] | |||
*[[GetRawFormIDString]] | *[[GetRawFormIDString]] | ||
*[[ToNumber]] | *[[ToNumber]] |
Latest revision as of 15:50, 2 April 2015
< [[::Category:Functions|Category:Functions]]
A function added by the New Vegas Script Extender.
Description
Returns the FormID number as a string in hexadecimal for the specified form.
Syntax
(string) GetFormIDString ToGet:form
Example
string_var formid let formid := GetFormIDString SunnyREF
; if you wanted to convert this to an int, you can use: int intFormID let intFormID := ToNumber formid, 1
Notes
- You can use this to convert a form to a string/int for use as an array map key. However, beware that FormIDs may change on game load, dependent on load order.