Frank2229 Posted November 12, 2017 Share Posted November 12, 2017 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 Agilityset iConstitution to player.GetActorValue Endurancelet iFitness := iDexterity - iConstitutionplayer.SetActorValue Unarmed iFitness Thank you in advance for any help. Link to comment Share on other sites More sharing options...
Mktavish Posted November 13, 2017 Share Posted November 13, 2017 (edited) 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 November 13, 2017 by Mktavish Link to comment Share on other sites More sharing options...
Frank2229 Posted November 16, 2017 Author Share Posted November 16, 2017 Sorry for the late reply. I fixed the problem. It was an issue of using the wrong function. Link to comment Share on other sites More sharing options...
Recommended Posts