Difference between revisions of "GetEsp"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Speedo
imported>Speedo
Line 18: Line 18:
If called from a script of ''Alchemical Formulas.esm'' (and it's the second loaded mod) EspID will be set to 1.
If called from a script of ''Alchemical Formulas.esm'' (and it's the second loaded mod) EspID will be set to 1.


[[Category: Pluggy]]
[[Category: Functions (Pluggy)]]

Revision as of 11:45, 26 February 2008


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.