• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Changing Ability Scores

pippin_nl

Well-known member
How do you change ability scores. I have tried:

Post Levels 9999

var v_hero as number
v_hero = herofield[tCR].value
v_hero = v_hero + 10
v_hero = 1/v_hero
v_hero *= 200
v_hero = int(v_hero)

hero.child[aSTR].field[Bonus].value = v_hero

This grants a bonus to Strength but does not change the Strength attribute.
 
If you want to make a permanent change to an ability score I would recommend looking at the different Ability Score adjustments to see how they are doing it.

Also you should never "set" a value you should always add or subtract otherwise you will be removing values coming from other Things.
Code:
hero.child[aSTR].field[Bonus].value [B]+[/B]= v_hero
 
Back
Top