Difference between revisions of "GetEsp"
Jump to navigation
Jump to search
imported>Haama (Added to category and beta tag, fixed syntax) |
imported>Haama m (Added colon to Example) |
||
Line 11: | Line 11: | ||
If no EspFilename is specified, GetEsp returns the EspID of the calling esp (of the script). | If no EspFilename is specified, GetEsp returns the EspID of the calling esp (of the script). | ||
'''Example''' | '''Example:''' | ||
long EspID | long EspID | ||
set EspID to (GetEsp "Alchemical Formulas.esm" | set EspID to (GetEsp "Alchemical Formulas.esm" |
Revision as of 13:20, 14 February 2008
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for Pluggy
Syntax:
(EspID:long) GetEsp "EspFilename:string"
Returns the Pluggy internal EspID corresponding an active esp or esm file. It returns -1 if the esp is not active. If no EspFilename is specified, GetEsp returns the EspID of the calling esp (of the script).
Example:
long EspID set EspID to (GetEsp "Alchemical Formulas.esm"
If Alchemical Formulas.esm is the second loaded mod, EspID will be set to 1.
long EspID set EspID to GetEsp
If called from a script of Alchemical Formulas.esm (and it's the second loaded mod) EspID will be set to 1.