GetFormIDString

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::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

[help]
(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.

See Also