Player Resource Consortium

 

Author Topic: PSP Question  (Read 3458 times)

0 Members and 2 Guests are viewing this topic.

January 05, 2012, 10:14:52 AM

Is there a PRC function to remove PSPs from a psychic PC?  I'm trying to make this poison.

Quote
Drain Power Points (Su): A creature that falls asleep
from psionocus poison loses 2 power points per round
until it awakens. If the psionocus and its master are within
1,500 ft., the master gains those power points, though his
power point total cannot increase beyond maximum.
Poison (Ex): Injury, Fortitude DC 13, initial damage
sleep for 1 minute plus drain power points, secondary
damage sleep for another 5d6 minutes plus drain power
points. The save DC is Constitution-based and includes a
+2 racial bonus.
HEATSTROKE


January 05, 2012, 12:16:50 PM
Reply #1
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

Something like this?:

Quote
/**
 * Decreases the character's current power point count by up to the given
 * amount, limited to not going below 0.
 * Reaching 0 PP causes loss of psionic focus.
 *
 * @param oChar   Character whose power points to adjust
 * @param nLoss   How many power points to remove
 * @param bInform If TRUE, runs TellCharacterPowerPointStatus() on oChar
 *                after making the modification.
 */
void LosePowerPoints(object oChar, int nLoss, int bInform = TRUE);

You can find some useful functins in psi_inc_ppoints.nss

(PSP?? That's from Mr Nathan's pack?)


January 05, 2012, 03:53:42 PM
Reply #2

Something like this?:

Quote
/**
 * Decreases the character's current power point count by up to the given
 * amount, limited to not going below 0.
 * Reaching 0 PP causes loss of psionic focus.
 *
 * @param oChar   Character whose power points to adjust
 * @param nLoss   How many power points to remove
 * @param bInform If TRUE, runs TellCharacterPowerPointStatus() on oChar
 *                after making the modification.
 */
void LosePowerPoints(object oChar, int nLoss, int bInform = TRUE);

You can find some useful functins in psi_inc_ppoints.nss

(PSP?? That's from Mr Nathan's pack?)

It's from 2nd Ed.  I guess they are just Power Points now.

Thanks, btw.
HEATSTROKE