GetFormIDString

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the FormID number as a string in hexadecimal for the specified form (Reference or Base 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.
  • Will not compile when you pass an explicit form or ref as the parameter, only a ref var.

See Also