Morrowind Mod:XGetTrap

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function from MWSE update by Merzasphor.

Returns info about the spell used for trap, 0 if no trap is present.

Syntax[edit]

spellId (string ref) name (string ref) cost (short): ref->xGetTrap 

Example[edit]

; Gets the trap of the player's target and stores it in spellId.
long target
long spellId
long name
short cost

setx target to xGetPCTarget
setx spellId name cost to target->xGetTrap

See Also[edit]

xSetTrap