Jump to content

How ActorValue (AV) Functions Work


larryrathbun

Recommended Posts

So, I was having trouble with actor value functions and no one was able to help. I had hoped someone could point me to something like this. I guess it doesn't exist, so I went and made it.
There are 9 different Actor Value functions. Four Get the values, 5 change the values. In these functions, you can abbreviate "Actor Value" as "AV". I'm going to do this throughout. I am also going to eliminate the reference "Player." in the explanations, "Player.GetActorValue Barter" is the same as "Player.GetAV Barter".
There is a TL:DR at the bottom.
Four "Getting" functions:
  Reveal hidden contents

GetAV - Returns the "Current Value"
"player.getAV Barter" returns 100


GetBaseAV - Returns the "Computed Base"
"player.getBaseAV Barter" returns 95


GetPermanentAV - Returns the "Level-up Value"
"player.getBaseAV Barter" returns 100

Now for the functions that change these values. I am going to run through each of them, using Barter as an example. At the end I will provide a TL:DR one line summary for each. In the examples, I underlined the field to watch as the example progresses.
SetActorValue SetAV
  Reveal hidden contents

ModActorValue ModAV
  Reveal hidden contents

DamageActorValue DamageAV
  Reveal hidden contents

RestoreActorValue RestoreAV
  Reveal hidden contents

ForceActorValue ForceAV
  Reveal hidden contents

TL:DR
GetAVInfo (console only)
Returns a block of info about the value.
GetAV
Returns the "Current Value"
GetBaseAV
Returns the "Computed Base"
GetPermanentAV
Returns the "Level-up Value"
SetAV:
Changes the AV Override not the value.
You can make this negative if you want.
ModAV
ModAV applies a permanent modifier (Perm)
It can be positive or negative
DamageAV
DamageAV applies a negative damage modifier. (Damage)
It's the absolute value of the passed value.
RestoreAV
RestoreAV applies a positive damage modifier. (Damage)
It's the absolute value of the passed value.
It can't take the Damage Modifier above 0.
ForceAV
ForceAV applies a Permanent modifier to make the Current Value Exactly what you pass to ForceAV
You CAN modify with other functions afterward.
Please share this if it helped you!
Edited by larryrathbun
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...