Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Sanity Points (http://forums.wolflair.com/showthread.php?t=12233)

Frodie January 20th, 2011 03:16 PM

Sanity Points
 
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."

Lawful_g 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".

Frodie 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 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

Mathias January 20th, 2011 04:26 PM

#skillbonus[] for a skill's bonus - #trkmax[] is the maximum number of charges a thing has.

Frodie 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 January 21st, 2011 05:21 AM

~ reduces to Sanity Points
#skillbonus[skshForLor] -= field.trkmax[trkshSanit].value

IDK, any thoughts?

Mathias 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

Frodie January 21st, 2011 12:43 PM

Cool! Thanks yall!!

Frodie 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?


All times are GMT -8. The time now is 03:55 PM.

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