Difference between revisions of "Category:Actor Value Functions"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
(ModAV2)
imported>JOG
Line 26: Line 26:
(Including damage and magical modifiers)
(Including damage and magical modifiers)
|[[ForceActorValue]] / [[ForceActorValue|ForceAv]]
|[[ForceActorValue]] / [[ForceActorValue|ForceAv]]
|<center><font color="Red">Red</font> / <font color="Green">Green</font></center>  
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  
<center>("Modified")</center>   
<center>("Modified" / "Restored")</center>   
|-
|-
|'''Add''' a certain value to the '''current value'''
|'''Add''' a certain value to the '''current value'''
(In addition to damage and magical modifiers)
(In addition to damage and magical modifiers)
|[[ModActorValue]] / [[ModActorValue|ModAv]]
|[[ModActorValue]] / [[ModActorValue|ModAv]]
|<center><font color="Red">Red</font> / <font color="Green">Green</font></center>  
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  
<center>("Modified")</center>  
<center>("Modified" / "Restored")</center>  
|-
|-
|'''Damage''' or '''Restore''' the '''current value'''
|'''Damage''' or '''Restore''' the '''current value'''
|[[ModActorValue2]] / [[ModActorValue2|ModAv2]]
|[[ModActorValue2]] / [[ModActorValue2|ModAv2]]
; (OBSE)
; (OBSE)
|<center><font color="Red">Red</font> / <font color="Green">Green</font></center>  
|<center><font color="Red">Red</font> / <font color="Blue">Blue</font></center>  
<center>("Modified")</center>  
<center>("Damaged" / "Restored")</center>  
|}
|}



Revision as of 04:10, 30 August 2006

There are several functions to access and modify an actor's stats.

Usage
Function
Stat Color
Get the unmodified base value

(At full health without any modifiers)

GetBaseActorValue / GetBaseAv
-
Set the stat's base value to a specific number

(before any other modifiers apply)

SetActorValue / SetAv
Blue
("Unmodified")
Get the current ingame value

(Including damage and all magical modifiers)

GetActorValue / GetAv
-
Set the current ingame value to a specific number

(Including damage and magical modifiers)

ForceActorValue / ForceAv
Red / Green / Blue
("Modified" / "Restored")
Add a certain value to the current value

(In addition to damage and magical modifiers)

ModActorValue / ModAv
Red / Green / Blue
("Modified" / "Restored")
Damage or Restore the current value ModActorValue2 / ModAv2
(OBSE)
Red / Blue
("Damaged" / "Restored")


Notes:

  • The value you see in game is the base value plus three modifiers:
  1. Game Modifier used for "permanent" effects such as Damage and Restore.
  2. Magic Modifier used for used for "temporary", dispellable magic-effects such as Drain and Fortify.
  3. Script Modifier used for "temporary" non-dispellable scripted-effects like blessings and curses. ModActorValue and ForceActorValue change only the script modifier.


  • Changes done by these functions can't be undone by ingame means like natural healing or magic. You need to undo them by script.


  • In a script these Functions behave like described above, in the console they show a different behavior because they were used by Bethesda for testing purposes. See the explanations for ModActorValue.