About this mod
Small Utility Script to get a Form from a hexadecimal Form ID string (and more) Support for ESLs.
- Requirements
- Permissions and credits
This mod provides a global FormHelper script. There is no .esp
- Convert hexadecimal Form IDs, e.g. "F" or "FE001801", to Form scripts.
- Convert Form to its hexadecimal Form ID
- Get the name of the mod for a Form, given the Form or its hexadecimal Form ID.
- Determine if a Form comes from a light plugin, given the Form or its hexadecimal Form ID.
- Get the mod index of the mod which a Form comes from, given the Form or its hexadecimal Form ID.
Why?
I have a few mods which need to convert hexadecimal form IDs to Forms and vice versa.
There may already be something with helper functions like these, but I didn't find them.
Source Code
https://github.com/mrowrpurr/FormHelper
Functions
See FormHelper.psc for full documentation.
All functions are documented. Tool-tips should show up in your editor (VS Code or Sublime Edit etc)
Form HexToForm(string)
string FormToHex(Form)
string FormIdToHex(int) ; this returns valid 8-character hex strings, specifically for Form.GetFormID() values
string IntToHex(int) ; generic decimal to hexadecimal function
int HexToInt(string) ; generic hexadecimal to decimal function
string FormToModName(Form) ; get the name of the mod this Form belongs to (supports light plugins)
string HexToModName(string)
int FormToModIndex(Form) ; get the index of the mod this Form belongs to (supports light plugins)
int HexToModIndex(string)
bool IsLightMod(string modname) ; is the provided mod name, e.g. MyMod.esp, a light plugin?
bool IsLightModForm(Form) ; is the mod this Form belongs to a light plugin?
bool IsLightModHex(string)