So im trying to make it so when I die, I lose half of my gold and I cant seem to get it.. help please?
I dont know what to do with gold loss on death. rpgmvx ace
RPG Maker VXAce SupportYou need an event that triggers on party defeat. Then set current gold held to a variable, and divide by 2. Then reduce gold held by amount stored in the variable.
how do you do party defeat? im looking and can only find like if one character is dead, I can string it together to check if the others are dead but that will take a while, is there like an option for party defeat?
if you use evented battles, just click on "continue even if lose", then have the "if lose" branch of the battle processing half your gold.
Unfortunately it isn't that easy if you want to use random map battles - do you use them?
Unfortunately it isn't that easy if you want to use random map battles - do you use them?
Where are you doing this check - in a parallel process common event? Are your battles set by random encounters on the map, or do you have monster events and use the Call Battle Processing command? With monster events, you can check the 'continue when defeated' flag and call a common event in the 'on lose' condition.
Doesn't your game go to game over when the whole party is defeated? If it does, you're going to have to do something to change that, otherwise your save file will contain your gold PRIOR TO the battle.
Anyway, assuming you can get an event to run after the entire party is defeated in battle, just do a Conditional Branch, select Script, and type $game_party.all_dead?
Doesn't your game go to game over when the whole party is defeated? If it does, you're going to have to do something to change that, otherwise your save file will contain your gold PRIOR TO the battle.
Anyway, assuming you can get an event to run after the entire party is defeated in battle, just do a Conditional Branch, select Script, and type $game_party.all_dead?
Original thread: https://forums.rpgmakerweb.com/threads/i-dont-know-what-to-do-with-gold-loss-on-death-rpgmvx-ace.16231/