Pharmacology isn't working for me

I have a character's pharmacology set to Sp-Paramater Pharmacology * 200% and when I use a potion that heals for 10, it still heals for 10 (I am making sure this specific character is the one using the potion). My potions formula is just +10 with the HP recover type. I have all of yanfly's plugins installed and most of them on I just don't know why it's not working and need help.
Is pharmacology something that you are using a plugin for? Which one, and how do you have your item set up (show a screenshot rather than explaining via words)?

I'm not sure if this is a plugin support request or if your mention of plugins is simply a red herring.
please show a screenshot of the item and of the actor/class where you set the value.

and how do you test that? you need to test with a new game because actor data is stored in the savefiles (if this is a recent change to the actor)
Is pharmacology something that you are using a plugin for?
It's one of the Sp-Parameters that no one uses 😉
My potions formula is just +10 with the HP recover type.
I believe this is the problem. By default PHA only applies to the Recover HP/MP effects, not the formula. Try swapping the formula for a +10 Recover HP effect?
I'm with caethyril; PHA won't do anything to a number in a formula, there's no way for it to know what's healing and what isn't.
I believe this is the problem. By default PHA only applies to the Recover HP/MP effects, not the formula. Try swapping the formula for a +10 Recover HP effect?
I'm with caethyril; PHA won't do anything to a number in a formula, there's no way for it to know what's healing and what isn't.

YO, what? Never knew that. That changes a few things regarding my plans for healing items, cause they're all using HP Recover formulas and not the effect... 😮
YO, what? Never knew that. That changes a few things regarding my plans for healing items, cause they're all using HP Recover formulas and not the effect... 😮
Yep. Literally the only places in the default code PHA is used is when calculating HP recover/MP recover effects in an item, and determining who the user is for an item in the item menu (since it's always the member with the highest PHA who can act)
That changes a few things regarding my plans for healing items😮
To be fair, it shouldn't be hard to modify a function to suit your needs, so long as you structure your items consistently.

there's no way for it to know what's healing and what isn't.
Not to be contrary, but...wouldn't a damage type of 3 or 4 be a pretty solid way to know? e.g. isHpRecover() || isMpRecover()?

I know that isn't what the default code does, but I don't really see a logical reason that it shouldn't. Maybe I'm not thinking of something.
To be fair, it shouldn't be hard to modify a function to suit your needs, so long as you structure your items consistently.


Not to be contrary, but...wouldn't a damage type of 3 or 4 be a pretty solid way to know? e.g. isHpRecover() || isMpRecover()?

I know that isn't what the default code does, but I don't really see a logical reason that it shouldn't. Maybe I'm not thinking of something.
I mean the individual numbers in the formula itself, but I suppose in fairness it only really *returns* the last value in the formula, so that's a moot point.

But then I think that would turn Pharmacology into something it was never meant to be.
But then I think that would turn Pharmacology into something it was never meant to be.
How do you mean? If I make an item that targets an ally, does HP Recover damage and uses the formula for a more intricate/precise amount than the Recover HP effect...is that no longer healing? No longer an item?

And if we're in agreement that it is, in fact, still a healing item, why shouldn't Pharmacology affect it?

I'm not trying to be manipulative, I just don't think it's clear what your definition of Pharmacology is (which is, perhaps, the same as the designers'). In the absence of any tooltips that I don't see anywhere, I should think it's all effects that are the result of healing from an item.
How do you mean? If I make an item that targets an ally, does HP Recover damage and uses the formula for a more intricate/precise amount than the Recover HP effect...is that no longer healing? No longer an item?

And if we're in agreement that it is, in fact, still a healing item, why shouldn't Pharmacology affect it?

I'm not trying to be manipulative, I just don't think it's clear what your definition of Pharmacology is (which is, perhaps, the same as the designers'). In the absence of any tooltips that I don't see anywhere, I should think it's all effects that are the result of healing from an item.
The only thing I can think of is that making it only apply to the effect rather than the formula allows for cases where you have a healing effect that *doesn't* benefit from Pharmacology. I'm not defining it though, I'm just going by A) how it actually works in the engine and B ) what how it actually works in the engine implies about the intent while designing it. But honestly, it probably could have gone either way.

Also speaking of tooltips:

1677867364927.png
Also speaking of tooltips:
Talk about getting there the back way 🤣

Regardless, @BaylinTodd and @RCXGaming you can copy this into a text editor, save it as a *.js file, include it as a plugin.
Code:
Game_Action.prototype.makeDamageValue = function(target, critical) {
    var item = this.item();
    var baseValue = this.evalDamageFormula(target);
    var value = baseValue * this.calcElementRate(target);
    if (this.isPhysical()) {
        value *= target.pdr;
    }
    if (this.isMagical()) {
        value *= target.mdr;
    }
    if (baseValue < 0) {
        value *= target.rec;
    }
    if (this.isItem())
        value*=this.subject().pha;
    if (critical) {
        value = this.applyCritical(value);
    }
    value = this.applyVariance(value, item.damage.variance);
    value = this.applyGuard(value, target);
    value = Math.round(value);
    return value;
};

I put it where the other parameters are applied, before resolving critical and variance, but you can just move the two lines (isItem() and subject().pha) to wherever you like if you want the math to work differently.
I believe this is the problem. By default PHA only applies to the Recover HP/MP effects, not the formula. Try swapping the formula for a +10 Recover HP effect?
Thank you so much, this was all that I needed and now it works perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/pharmacology-isnt-working-for-me.155465/