Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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 |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
It dose thanks.
|
#3 |
|
|