Difference between revisions of "ModActorValue2"
Jump to navigation
Jump to search
imported>Talkie Toaster |
imported>Shademe m (→Notes: Grammatical correction) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
ModActorValue2 ''StatName value:integer'' | ModActorValue2 ''StatName value:integer'' | ||
ModAV2 ''StatName value:integer'' | ModAV2 ''StatName value:integer'' | ||
ModActorValue2 modifies the current value of the stat by the specified value, without affecting the base value of the stat. | |||
'''Example:''' | '''Example:''' | ||
ModActorValue2 Strength -10 | ModActorValue2 Strength -10 | ||
==Notes== | |||
* Be aware that the value is an unrounded integer; ModAV2 StatName 3.9 would result in a 3 point change. | |||
Of critical note is that attempting to mod positive-only stats like health and attributes to negative values will cause the game to crash to desktop. | * Of critical note is that attempting to mod positive-only stats like health and attributes to negative values will cause the game to crash to desktop. | ||
* This function is identical to the console-version of [[ModActorValue]] | |||
Other than [[ModActorValue]], this function acts exactly like spells: | * Other than [[ModActorValue]], this function acts exactly like spells: | ||
:*A negative value | :*A negative value 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). | :*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). | ||
<!--[[Category: OBSE Functions]] | |||
[[Category: OBSE Item Functions]] | |||
[[Category: OBSE Reference Functions]]--> | |||
[[Category: Functions]] | |||
[[Category: Functions (OBSE)]] | |||
[[Category: Actor Value Functions]] | |||
[[Category: Actor Value Functions (OBSE)]] | |||
[[Category: OBSE | |||
[[Category: | |||
[[Category: OBSE |
Latest revision as of 19:51, 22 December 2009
A command for Oblivion Script Extender
Syntax:
ModActorValue2 StatName value:integer ModAV2 StatName value:integer
ModActorValue2 modifies the current value of the stat by the specified value, without affecting the base value of the stat.
Example:
ModActorValue2 Strength -10
Notes[edit | edit source]
- Be aware that the value is an unrounded integer; ModAV2 StatName 3.9 would result in a 3 point change.
- Of critical note is that attempting to mod positive-only stats like health and attributes to negative values will cause the game to crash to desktop.
- This function is identical to the console-version of ModActorValue
- Other than ModActorValue, this function acts exactly like spells:
- A negative value 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).