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)
-   -   Need Help w/ Temporary Hit Point Counter (http://forums.wolflair.com/showthread.php?t=57152)

Tony.Gamemaster December 4th, 2016 03:14 PM

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.

Mathias December 4th, 2016 03:17 PM

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.

Tony.Gamemaster December 4th, 2016 03:41 PM

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.

Mathias December 4th, 2016 03:46 PM

Why not use a bootstrap of a temp HP pool, like in the False Life spell adjustment?

Tony.Gamemaster December 4th, 2016 03:54 PM

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.

Tony.Gamemaster December 4th, 2016 04:06 PM

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.

Vanye111 December 5th, 2016 09:00 AM

Quote:

Originally Posted by Tony.Gamemaster (Post 239177)
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.


All times are GMT -8. The time now is 10:29 PM.

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