IncrementSkillBy and BaseActorValue: Any way to use ISB to i

Post » Sat Nov 17, 2012 4:12 pm

Hi all,

I was wondering:

IncrementSkillBy requires a Skill Name to increase the value, but I was wondering:

Since Skills and Attributes are both ActorValues...could this be used to increase the Base Actor Value of attributes (Health, Stamina, Magicka)?

...or this is possible only on level up?

I am asking because I made a mod, which, along other features, allows to increase the attribute and skills by "devouring the soul" of your victims,
but, in doubt, I have used ModAV for Attributes and IncrementSkillBy for Skills...

...however...while skills act as intended (BaseActorValue increases), Attributes have their base value enhanced, but the Base Actor Value stays the same,
which allow for unlimited cheating (since the check is on BAV and BAV doesn't increase as you use the "devour soul" effect, you could get unlimited increase
with just one creature having higher health, stamina and/or magicka than you!)...

Thanks,
Jashkar


P.S.: Moreover...which kind of NPC has a very high Sneak rating?
(I don't have a high Sneak, but even bandits seems to have a lower Sneak rating than me! So I was looking for someone (non-unique npc) to "harvest" for Sneak! :tongue:)
User avatar
Sandeep Khatkar
 
Posts: 3364
Joined: Wed Jul 18, 2007 11:02 am

Post » Sat Nov 17, 2012 5:46 am

No, IncrementSkillBy can't be used to modify attributes. You are right taking the *AV for attributes route.

Not gonna make any guesses with the AV settings.

http://www.creationkit.com/ModActorValue

Read up on each of those, particularly GetBaseActorValue. (note that page is of console commands, but you already know there is papyrus versions)
User avatar
Sammygirl
 
Posts: 3378
Joined: Fri Jun 16, 2006 6:15 pm

Post » Sat Nov 17, 2012 5:03 pm

No, IncrementSkillBy can't be used to modify attributes. You are right taking the *AV for attributes route.

Not gonna make any guesses with the AV settings.

http://www.creationkit.com/ModActorValue

Read up on each of those, particularly GetBaseActorValue. (note that page is of console commands, but you already know there is papyrus versions)

It's really a bad news, but thanks anyway... :)

However...reading again those pages I seem to understand this:

SetActorValue is used to adjust the BaseActorValue, while ModActorValue changes the Permanent Modifier...

So, in order to gain a level-up-like effect, I need to get the BaseActorValue, define the adjustment, calculate the final value and set it to that value with SetAV...am I getting it right?

Thanks,
Jashkar
User avatar
Brian LeHury
 
Posts: 3416
Joined: Tue May 22, 2007 6:54 am

Post » Sat Nov 17, 2012 2:29 pm

Yes, you're on the right track.

XD maybe if you asked way back when I was constantly messing with those functions I'd give you a better answer, but it's been so long now..
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am


Return to V - Skyrim