modav, setav, baseav relationship

Post » Mon Mar 24, 2014 9:37 pm

I'm using Auto Health, Magicka, and Stamina which adjusts your HMS according to your skill level and not picked on level up (by using ely's uncapper). As per the author he uses the setav function for this.

I'm also using Duke Patrick's combat mod which calculates strength for various combat effects from the actors's base health and Duke says modav won't work.

Question:
Does setav affect base health and thus work with Duke's mod?

Or in Duke's own words:

Question, will:

BaseHealth = me.GetBaseActorValue("health")

be effected by the script function "setav" ?

User avatar
Donald Richards
 
Posts: 3378
Joined: Sat Jun 30, 2007 3:59 am

Post » Tue Mar 25, 2014 11:04 am

Yes, SetAV changes the BaseActorValue.

You can confirm this in the console,

Player.GetBaseActorValue Health

This returns the players base health excluding any modification by armour etc

Player.SetActorValue Health 50

Then when you use:

Player.GetBaseActorValue Health

It will return 50

Again any modification to health remains unchanged.

User avatar
Dorian Cozens
 
Posts: 3398
Joined: Sat May 26, 2007 9:47 am


Return to V - Skyrim