Galv Party Favor Subtracting Enemy and Party Favor Help

Hello! I am creating a project that relies on the Party Favor System of Galv's an awful lot, but I'm having a number of problems.

This script: https://galvs-scripts.com/2012/11/11/battle-favour/#comment-21802

I hope to make enemies use skills that can subtract party favors, be it their own favors or the player party's favors. However, whenever an enemy uses a favor subtraction skill and the subtraction results in the party favor going below 0, the game crashes.

Say, for example, I want to make a skill that subtracts the party favor by 10. If the party favor is 9, the game will crash.

What I would like is for the game to make the party favor become 0 whenever it tries to subtract below 0.

One other, but less important issue. I'd like to create attacks that make the user gain less favor than normal. Some attacks hit multiple opponents, and when there are a lot of opponents on the field, this makes the party favor skyrocket. The skill becomes really overpowered as a result. In those situations, I'd like to make the favor gained from each hit be less than normal.

Thank you all for your time and have a good day!
Moved to: RGSSx Script Support
Please edit your post to include a link to the web page where you got that script. That way if anyone needs to check something before making a suggestion, they won't have to go hunting.
Moved to: RGSSx Script Support
Please edit your post to include a link to the web page where you got that script. That way if anyone needs to check something before making a suggestion, they won't have to go hunting.
Ah, sorry for the trouble. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/galv-party-favor-subtracting-enemy-and-party-favor-help.112448/