Difference between revisions of "GetMagicEffectCode"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(ME)
imported>DragoonWraith
(not a record variable function)
Line 16: Line 16:
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Magic Effect (OBSE)]]
[[Category:Magic Functions - Magic Effect (OBSE)]]
[[Category:Record Variable Functions]]
[[Category:Record Variable Functions (OBSE)]]

Revision as of 18:04, 21 March 2008

A command for Oblivion Script Extender

Syntax:

(magicEffectCode:long) GetMagicEffectCode effect:chars
(magicEffectCode:long) GetMECode effect:chars

Returns the magic effect code of the effect.

Notes

  • When used on Magic Effects without FormIDs (for Vanilla Oblivion, those effects are DISE, DUMY, and RSWD; FormID = 00000000) the script will never run in-game. You can give these Magic Effects FormIDs by modifying them (but there may be issues when other mods modify them as well).