ModActorValue2

From the Oblivion ConstructionSet Wiki
Revision as of 03:54, 30 August 2006 by imported>JOG
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

ModActorValue2 StatName value 
ModAV2 StatName value 

Example:

ModActorValue2 Strength -10 

ModActorValue2 modifies the current value of the stat by the specified value, without affecting the base value of the stat.


Other than ModActorValue, this function acts exactly like spells:

  • A negative value and can be undone with a restore spell.
  • A positive value will restore damage done to the stat, but it will not exceed the maximum value of the stat. ("Player.ModAV2 health 10000" will fully heal you but not give you 10000 health).


Notes:

  • This function is identical to the console-version of ModActorValue