Open main menu

UESPWiki β

Morrowind Mod:XGetTrap

< Mod / Morrowind: Morrowind Mod: MWSE

A function from MWSE update by Merzasphor.

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

SyntaxEdit

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

ExampleEdit

; 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 AlsoEdit