Difference between revisions of "Category:Actor Value Functions"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JRoush
(Clarify how the functions modify the AV (which modifier/factor they affect))
imported>JRoush
m (changed 'Offset' to 'Script' to reflect OBSE useage)
 
Line 24: Line 24:
|-
|-
|'''Set''' the '''Current value''' to a specific number
|'''Set''' the '''Current value''' to a specific number
(The ''console'' version changes the Damage modifier, the ''script'' version changes the Offset modifier)
(The ''console'' version changes the Damage modifier, the ''script'' version changes the Script modifier)
|[[ForceActorValue]] / [[ForceActorValue|ForceAv]]
|[[ForceActorValue]] / [[ForceActorValue|ForceAv]]
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  
Line 30: Line 30:
|-
|-
|'''Add''' a certain value to the '''Current value'''
|'''Add''' a certain value to the '''Current value'''
(The ''console'' version changes the Damage modifier, the ''script'' version changes the Offset modifier)
(The ''console'' version changes the Damage modifier, the ''script'' version changes the Script modifier)
|[[ModActorValue]] / [[ModActorValue|ModAv]]
|[[ModActorValue]] / [[ModActorValue|ModAv]]
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  
|<center><font color="Red">Red</font> / <font color="Green">Green</font> / <font color="Blue">Blue</font></center>  

Latest revision as of 22:58, 9 November 2011

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

Usage
Function
Stat Color
Get the Calculated Base value

(value from base form + calculated factor from game settings, other AVs, etc.)

GetBaseActorValue / GetBaseAv
-
Set the the Base value to a specific number

(the value from the base form, with no modifiers or calculated factors)

SetActorValue / SetAv
Blue
("Unmodified")
Get the Current value

(Including all modifiers and calculated factors)

GetActorValue / GetAv
-
Set the Current value to a specific number

(The console version changes the Damage modifier, the script version changes the Script modifier)

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

(The console version changes the Damage modifier, the script version changes the Script modifier)

ModActorValue / ModAv
Red / Green / Blue
("Modified" / "Restored")
Add a certain value to the Current value

(Changes the Damage modifier)

ModActorValue2 / ModAv2
(OBSE)
Red / Blue
("Damaged" / "Restored")

See the Actor Values page for details on the various Modifiers.