Need helps about state with decreasing parameters

Hi guys,

I would like to ask if there is any way to decrease a parameter by a certain percentage or number. For example, by default, the system only allows me to add [TGR * %] to a state but i just want it to be [TGR - %]. I don't like to use its default cuz my actor has 150% TGR but i just want to decrease it by 100% so it will have 50% left, but the default method did not allow me to do that.

I'm looking forward to a great method for this from you. Thanks a lot!
Yanfly's Lunatic States script should be able to do this.

https://yanflychannel.wordpress.com/rmvxa/battle-scripts/lunatic-states/
Except there's no eval command in Yanfly's Lunatic States, so the only states she can use are the add-ons. Unless you have a different version than the one I found, as mine has no eval command so those custom conditions are never evaulated. If I'm wrong, please show me how you got it to work, as I never did until I added an eval line, then it worked perfectly.

I have a fix for it, but cannot post it from work. I won't be home for a few hours, but if no one has another fix I'll post mine by then.

Edit: I'm not sure Yanfly's script will let you decrease a value by a set amount though. I had to go to Dekita's statistics control script to do that. I can't post the link I'm afraid (again, on my work comp on break), but if you search for it, it should come up?
@Trihan: Can you please explain in details what i should do with Yanfly Lunatic States? I'm still not sure how to handle this script.
The whole point of the Lunatic scripts is that you have to add the effects yourself, which is why there's no eval. That said, this question is actually more complex than I initially thought because sparams are based on features and there are multiple sources for those. Probably the best thing to do would be to add a new attr_accessor to Game_BattlerBase called @sparam_modifier or something similar and then overwrite the sparam method to add that value.
@Trihan: That's what I thought too. Dekita overwrote it with his script, but I cannot access it from where I'm at. I think Shaz might have written one too?
@Trihan: That seems to be quite far from my knowledge at this moment. I'm not good at handling scripts.
I'm working on something for you, one sec.

Hmm, I have something that sort of works but with one snag: sparam values are complemented, so they can't be added to or subtracted from the same way params are. I have a notetag that lets you add a new sparam feature to the state which allows negative values, but if I do say <sparam: 0 -100%> it actually sets TGR to -1.0 rather than taking 1.0 away from whatever the value was before.

The tricky part is that a state's features don't actually connect with or care about the actual parameter values of the battlers, so it's not possible to just slot in a calculation based on those values because RPG::State has no idea they exist. Likewise, it isn't really feasible to implement a calculation in Game_BattlerBase because the sparams already take state features into account and there isn't really an easy way to have a state modify a particular instance variable of battlers because the states don't really know who has them at any given time.

I'm sure there is a way to do this, but right now I'm not quite there.
So there have not been any possible ways to modify s-param like that? If that so i think i have to stick with the default system and change the way how my skills work to make them fit the situations.
The math used to come up with a battler's final rates at any given moment in combat are hidden pretty far down, but with enough method overwrites you could definitely change how they work.

If this is an important feature in your game, and you don't have any other scripts that modify the way that a battler's parameters are evaluated, then it couldn't hurt to make a Script Request or a small Commission; I imagine you can find someone to do this for you.
Thank you for your suggestion, Wavelength. I think i will make a script request for this because my skills need to work with the parameters a lot. 

Original thread: https://forums.rpgmakerweb.com/threads/need-helps-about-state-with-decreasing-parameters.39628/