SetAVMod

Revision as of 09:33, 7 July 2012 by imported>QQuix (New page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(nothing) reference.SetAVMod actorValueName:string   whichModifier:string   amount:float 
(nothing) reference.SetAVModC actorValueCode:int   whichModifier:string   amount:float

Sets the value of one of the calling actor's modifiers for the specified actor value.

The modifier is specified as a string:

  • "script" refers to the script (or "offset") modifier applied by the script versions of ModAV and ForceAV;
  • "max" refers to the modifier applied by magic effects like feather, drain, and fortify; and
  • "damage" refers to that applied by effects like damage and restore, and by the console version of ModAV/ForceAV as well as ModAV2.

To encourage compatibility between mods, prefer using ModAVMod over SetAVMod.