[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
SetActorValue
Revision as of 02:38, 9 December 2007 by imported>Windscion (caveat for Player.SetAV Health)
Syntax:
SetActorValue StatName value SetAV StatName value
Example:
SetActorValue Strength 60 Player.SetActorValue Alteration 50
SetActorValue sets the stat's base value to the new value.
Note: Although called on a reference, this function actually changes the value on the base actor (thus the base value on all references of that base actor). Note also that ModActorValue modifies the stat value only on the reference, and so is usually preferable.
Note: There is a subtlety when using Player.SetActorValue Health -- what is set is not the PC's total health, but that portion not due to their current endurance attribute. Hence,
- set igor to Player.GetAV Health
- Player.SetActorValue Health igor
will increase the PC's maximum health by the amount due to their endurance. (E.g., 2xEND in vanilla, 1.5xEND in OOO.)