• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Need Help w/ Temporary Hit Point Counter

I'm creating a new adjustment for temporary hit points. I have a counter set up that will add the counter's total to the character's hit points. It's super-simple.

herofield[tCurrentHP].value += field[pAdjust].value

What I need to do is have the counter start a minimum of 0 and automatically max-out at whatever the character's total (not current) hit points are. For example: If a character has 10hp and they take 8hp of damage, and then they use this counter to add 10 temporary hit points, it needs to stop a 10hp (10/10) and not add the extra 2 (12/10).

Anyone know how I set this limitation?

As a side note, is it possible to have a counter automatically set itself to a value when it is checked off? I have the logic how it needs to calculate but absolutely no idea how it would be scripted.

Thanks! Any help is appreciated.
 
I recommend describing the game rules you're trying to implement.

This sounds like a major hack that you're trying to accomplish, and there may be a better way to get to your overall goal, but without knowing what that goal is, I can't decide if there's a better way.
 
The mechanic I'm trying to implement is fairly straight-forward. When someone turns the counter on under "Other Adjustments", they should be able to add temporary hit points using the incremental/counter up to their maximum total.

That's really all I really need the counter to do (max out at the character's total HP).

------------------->

The side-note is a lot more complicated, and not at all necessary. Since the temporary hit points are calculated, it would be nice to have the adjustment counter automatically set to a calculated value instead of requiring the player to set the counter. The value would be one-quarter of the character's full hit point total (rounded down) or a number of hit points equal to their Constitution score, whichever is greater - not to exceed their hit point total. And when the counter is turned off, it would have to reset to this value next time it's turned on.

Basically, this is the second wind mechanic from Star Wars: Saga Edition that I'm adapting to Pathfinder. The only difference is, instead of healing damage, it's providing temporary hit points.

Again, not at all necessary.
 
I didn't know you could do that. This is all pretty new to me. I don't know how that works, but I'll check out False Life and see what I can come up with.
 
Actually, I can just make it really simple and just have them put in a Temporary Hit Point Pool on the In-Play tab. They'd only need to calculate it when they level up.

Edit: Actually, that doesn't solve the issue of it needing to max-out at their total hit-points. Ugh! And when the pool is added, the current total remains the same, so the penalties incurred by wound thresholds still applies.
 
Last edited:
Edit: Actually, that doesn't solve the issue of it needing to max-out at their total hit-points. Ugh! And when the pool is added, the current total remains the same, so the penalties incurred by wound thresholds still applies.

That would be because temporary hit points are actual healing, they're (basically) an ablative barrier that absorbs a set amount of damage before allowing the protected person to take any more damage. Any previous conditions still exist.
 
Back
Top