Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Mutants & Masterminds
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old October 17th, 2008, 07:05 AM
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 is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old October 20th, 2008, 02:37 PM
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
Colen is offline   #2 Reply With Quote
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old October 20th, 2008, 06:56 PM
It dose thanks.
dartnet is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:54 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.