GetActorValueName

From GECK
(Redirected from GetAVName)
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.50.

Description

Returns the name string associated to an actor value. This is useful to convert an actor value code into its actor value name.

Syntax

[help]
(name:string) GetActorValueName actorValue:statName 

Or:

(name:string) GetAVName actorValue:statName

Example

 string_var sName = GetActorValueName (1)
 printvar sName
 ;* Prints sName as containing "Confidence"

The above example uses an Inline Expression to allow passing an integer as an actor value code.

 ;* Prints the values of all limb condition AVs, along with their names, for readability.

 int iPerceptionCondition = 25
 int iBrainCondition = 31

 int i = iPerceptionCondition 
 while (i <= iBrainCondition)
    float fCondition = player.GetAV (i)
    string_var sAVName = player.GetAVName (i)
    print $sName + ": " + $fCondition 
    i += 1
 loop