Make player have negative gold after removing a set value of it when player gold is 0

Is there any sort of way to do this? Maybe a plugin or something that I could change in the game's project files?
If you just want to remove the lower cap for gold (so that it can go below 0) this plugin should do it:

JavaScript:
Game_Party.prototype.gainGold = function(amount) {
    this._gold = this._gold + amount;
};
thanks, it works perfectly
Please tell me you have a mechanic that sends someone to come after you if you wander the game for too long with negative gold... or if you don't repay your gold and enter a shop:

tumblr_d4d40b48cd34a311f20dc1971094aadd_bba068b0_500.gif
That's an amazing idea but I don't know how exactly I'd implement that
Please tell me you have a mechanic that sends someone to come after you if you wander the game for too long with negative gold... or if you don't repay your gold and enter a shop:

View attachment 314075
That's an amazing idea but I don't know how exactly I'd implement that
Haha no worries - I'm just remembering my Game Boy days lol.

You could always just so a condition check for less than 0 gold or something.
Haha no worries - I'm just remembering my Game Boy days lol.

You could always just so a condition check for less than 0 gold or something.
I might consider it haha

Original thread: https://forums.rpgmakerweb.com/threads/make-player-have-negative-gold-after-removing-a-set-value-of-it-when-player-gold-is-0.170936/