edited March 23 in ORK Support
So, let's say I have two kinds of Health. HP, and bHP. bHP is the 'Barrier' value for HP.

Here's a problem that we ran into: we want bHP to heal HP if HP isn't already maxed.

Example for desired behavior:

- I have 10/10 HP, and 0/5 bHP.

- I take 5 damage, which lowers me to 5/10 HP.

- I drink a potion that gives me 8 bHP.

- It recovers 5HP, recovering my HP to max, and grants me 3 bHP.


==============

As things are right now in ORK, that potion would grant me 5/5 bHP, leaving me with:

5/10 HP and 5/5 bHP.

==============

Any ideas on how to handle this? :O Not sure if there's an easy method I've just missed, or if we need an option for allowing Barrier Values to heal the statue value that they're barriers for.
Post edited by Kirb on
Tactics RPG Grid Battle System for ORK
---------------------------------------
I make Rune Fencer Illyia: https://twitter.com/Nootboxgames
Personal Twitter: https://twitter.com/AMO_Crate
  • Hm, try setting up 2 status value changes in your potion, first the HP and 2nd the bHP changes.
    The HP change would use a formula that calculates the overhealing of the potion (e.g. 8 provided via the Initial Value setting), should be done by subtracting max bHP and adding current bHP. Maybe use a minim value of 0 to prevent damaging HP :)
    The bHP change would just add 8.

    Alternatively, you can also do this in the battle events used to animate the potion.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited March 23
    Hm, that would heal my HP, but in the example you gave, wouldn't adding 8 bHP afterward still just result in giving me the full 8 bHP instead of just the overflow? Maybe I'm just reading it wrong D:

    We'd want only the overflow over max HP to become bHP, in our case. You'd never have *any* bHP without having max HP already. (Basically how Yellow hearts in Breath of the Wild work, where eating food that grants you Yellow Hearts will recover Red Hearts first, and then add whatever's left to Yellow Hearts.)

    - Have 5/10 HP -- 0/10 bHP

    - Drink a potion granting 8 bHP

    - Now at 10/10 HP -- 3/10 bHP
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    I make Rune Fencer Illyia: https://twitter.com/Nootboxgames
    Personal Twitter: https://twitter.com/AMO_Crate
  • Ah, sorry, read that the other way around - potion filling the barrier and adding the rest to HP. In that case, potion healing HP and the overflow going into barrier, just use it with HP and bHP reversed, i.e.:

    - 1st value change is bHP with formula subtracting max HP and adding current HP
    - 2nd value change is HP with just adding the value
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.