Difference between revisions of "GetMagicEffectCode"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Notes on 0000000 FormID bug)
imported>DragoonWraith
(ME)
Line 15: Line 15:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Magic Effect (OBSE)]]
[[Category:Record Variable Functions]]
[[Category:Record Variable Functions]]
[[Category:Record Variable Functions (OBSE)]]
[[Category:Record Variable Functions (OBSE)]]

Revision as of 19:33, 1 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).