I dont know what to do with gold loss on death. rpgmvx ace

Status
Not open for further replies.

Archlight

Warper
Member
Joined
Aug 1, 2013
Messages
4
Reaction score
0
First Language
English
Primarily Uses
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?
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
You 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.
 

Archlight

Warper
Member
Joined
Aug 1, 2013
Messages
4
Reaction score
0
First Language
English
Primarily Uses
You 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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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?
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top