Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 20th, 2011, 03:16 PM
Ok, going to need some help with this:http://www.d20srd.org/srd/variant/campaigns/sanity.htm

I made a tracker, NP, but now I need a script for "A character’s starting Sanity equals his Wisdom score multiplied by 5."
Frodie is offline   #1 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old January 20th, 2011, 03:19 PM
I would try this as an eval script sometime in the Finals Phase:

var sanity as number
sanity = hero.child[aWIS].field[aFinalVal].value * 5

Then set the value of your tracker or whatever to be equal to "sanity".
Lawful_g is offline   #2 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 20th, 2011, 03:43 PM
Thank you very much!!! Here is the script and it works great:

~ We get Wisdom score multiplied by 5, so calculate
~ that number.
var sp as number
sp = hero.child[aWIS].field[aFinalVal].value * 5
sp = round(sp, 0, -1)

~ Add to our total charges.
field[trkMax].value += sp
Frodie is offline   #3 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 20th, 2011, 04:07 PM
Cool ok, now I made an Adjustment that: "You gain one Rank of the Skill: Knowledge (forbidden lore).

Each rank you gain in this skill permanently reduces your maximum Sanity by 1 point: The more you know about the horrible truths underlying reality, the less capable you are of leading a normal life."
The scipt for reducing the Sanity works great, but the script to increase the skill doesn't, any ideas?


~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Add to Knowledge: Forbidden Lore
#trkmax[skshForLor] += field[pAdjust].value
Frodie is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 20th, 2011, 04:26 PM
#skillbonus[] for a skill's bonus - #trkmax[] is the maximum number of charges a thing has.
Mathias is online now   #5 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 21st, 2011, 05:16 AM
Cool that works great, thank you!

Ok, I want to see if I can get the skill to reduce the Tracker, here is the script, any ideas?

~ reduces to Sanity Points
#trkmax[trkshSanit] -= field[pSklPoints].value
Frodie is offline   #6 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 21st, 2011, 05:21 AM
~ reduces to Sanity Points
#skillbonus[skshForLor] -= field.trkmax[trkshSanit].value

IDK, any thoughts?
Frodie is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 21st, 2011, 09:20 AM
from a third thing:
#trkmax[trkshSanit] -= #skillranks[skshForLor]

from the tracker:
field[trkMax].value -= #skillranks[skshForLor]

from the skill:

#trkmax[trkshSanit] -= field[kUserRanks].value
Mathias is online now   #8 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old January 21st, 2011, 12:43 PM
Cool! Thanks yall!!
Frodie is offline   #9 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old March 20th, 2011, 05:53 PM
I am try to see if I can get the user to pick either Int, Wis, and/or Cha, (The Pathfinder way)

here is the script, but with no luck:

if (field[usrChosen1].ischosen <> 0) then
var sp as number
sp = [usrChosen1].field[aFinalVal].value * 5
sp = round(sp, 0, -1)

Any Ideas?
Frodie is offline   #10 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 01:25 PM.


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