GetFormFromMod

From GECK
Jump to: navigation, search


A function added by the Lutana NVSE plugin, now part of the JIP NVSE Plugin.

Description

An alternative to BuildRef, this function takes two strings with the plugin name and the hexadecimal formID (without the mod index, i.e. the first two numbers).

Syntax

[help]
(form) GetFormFromMod pluginName:string hexFormID:string 

Or:

(form) GFFM pluginName:string hexFormID:string

Example

ref rForm

if IsModLoaded "Some Plugin.esp"
    set rForm to GetFormFromMod "Some Plugin.esp" "AED"  ;* "AED" = "000AED", leading zeros can be removed
endif 

See Also