Jump to content

Problem Creating Character Skill Script


Frank2229

Recommended Posts

Hello! I just wanted to preface by saying I am a long time lurker, first time poster.

 

I have run into a problem with a script I have been working on that is supposed to change character skills. The problem Iâm having is changing the skill itself. For instance, I want to chance the attribute bonus for Unarmed (Endurance) to a combination of Endurance and Agility. When I did though, the script will average out the two attributes on character creation perfectly, but any increases made on level up disappear shortly after the level up menu disappears. I just want to know if what Iâm trying to do is even possible or if there is a work around. Here is an example of my script:

 

set iDexterity to player.GetActorValue Agility

set iConstitution to player.GetActorValue Endurance

let iFitness := iDexterity - iConstitution

player.SetActorValue Unarmed iFitness

 

Thank you in advance for any help.

Link to comment
Share on other sites

Can you show us your whole script doing this ?

 

And if I think I understand correctly ... the skill of unarmed ... which during level up is something you can put points into ? Sorry am mostly just familiar with Fo3.

 

And with NV this skill is primarily set by Endurance ? But you want to also modify it with Agility ?

 

So on character creation , your script does what you want ... but then upon level up ... it acts as if any points you put into unarmed did not happen ???

 

Without seeing your whole script ... I'd say it is because your script is always running , therefore always setting unarmed to what it calculates upon char creation ... instead of only 1 time upon character creation. But since the player can also increase SPECIAL pts ... which you would then like to also modify the unarmed skill at that point. You need it to run more than just on the initial character creation ?

 

Off hand I'd say you could control when this happens with a variable incrementing. But would need to see all the script , and any other parts you are using , to see where to fix it , or possibly try a whole new approach.

Edited by Mktavish
Link to comment
Share on other sites

  • Recently Browsing   0 members

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