• 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

How do I?

dartnet

Well-known member
How do I script a skill to give a -1 to the Will save for every 5 ranks the skill has?

I am trying to run a game where the forbidden knowledge skill (a skill I am adding to my game) makes those that know it go mad.
 
dartnet wrote:
>
>
> How do I script a skill to give a -1 to the Will save for every 5 ranks
> the skill has?
>
> I am trying to run a game where the forbidden knowledge (a skill I am
> adding to my game) makes those that know it go mad.


A script like this should work:


~ -1 to Wisdom per full 5 ranks in the skill
var penalty as number
penalty = field[Base].value / 5
penalty = round(penalty, 0, -1)
hero.child[aWIS].field[Permanent].value -= penalty


First we divide the base rank of the skill by 5, then we round it down,
then we apply it as a penalty to Wisdom.


Hope this helps,

--
Colen McAlister, colen@wolflair.com
 
Back
Top