i tried doing this different ways I'm not very good with scripting as i don't have much time to practice. I'd been looking for something to do this for a while, but couldn't find anything. I'll try and find a better way of making this happen but as of right now this was the only way i could get to work. Also i felt i'd attempt to contribute to the community here, feel free to delete this post if you want or leave it, cya.

But now there is no variance, only a percent bonus so to speak. If the party would normally get 1000 gold, assuming 25% variance, they should gain an amount between 750 - 1250. Your fix limits this to 1000 - 1250.

Then you must consider the amount of gold the party has before adding the variance to it. What if the party has max gold (9999999) before the battle, Phase 5 adds (I don't know...) 10000 gold, and after calculating variance the party should happen to get 7500 gold, you can't do a simple $game_party.gain_gold(-2500) because now the party lost money for winning.

I actually have the solution already, but I'll hide it for now unless someone requests it or someone else figures it out. It's very similar to what you have posted Drago.

I agree, it has to be done in phase5 of Scene_Battle for the exact same reasons that KK20 already pointed out. That part of the scripts is a weakpoint in that regard, because it wasn't coded in a modular way. Way too much stuff crunched into one method.

cool, nice work i just started working on mine right now but i see you all already solved it. I'll still use what I've made for my project but nice work. i guess back to learning ruby language take care.