Difference between revisions of "SetActorValue"
Jump to navigation
Jump to search
imported>ShadowDancer m (formatting) |
imported>Windscion (caveat for Player.SetAV Health) |
||
| Line 10: | Line 10: | ||
'''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:''' 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.) |
|||
==See Also== |
==See Also== |
||
[[Stats List]] |
[[Stats List]] |
||
Revision as of 01:38, 9 December 2007
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.)