Making A ATM And Losing Money When Dying?

I want to make a ATM. The reason for that is to put your money inside the ATM. If you get a game over, then you lose half of the money you have unless you had $0 in which nothing would be taken.

The question is how do I make a ATM, and how do I set it so there's that money taking death penalty?
As far as the ATM, somewhat simple if you know what you're doing. Basically, you have the ATM event, then if you want it where you automatically lose all of your money, go into "change gold" and make it set to a variable for the player's gold. Then make a variable for the bank's gold and set it to the player's gold.
If you have it where the player can choose how much they want to deposit, that's going to be a bit trickier, because you'll probably need a visual component to actually show that the player is losing/gaining money. But as far as the technical stuff goes, it's basically the same, but you have to check for player input. Here's the event format for the whole thing.
Show Text: Press the up button to take money, press the down button to deposit money. \$
Conditional Branch: up button is being pressed
Conditional Branch: bank > 0
Control Variables: gold += 1
Control Variables: bank -= 1
Else
Play SE: buzzer
Show text: "There is no money in the bank."
Branch End

Conditional Branch: down button is being pressed
Conditional Branch: gold > 0
Control Variables: gold -= 1
Control Variables: bank += 1
Else
Play SE: buzzer
Show text: "You have no money."
Branch End

As far as losing money after dying, it depends on how you have your battles set up. If it's a random encounter, you'd need a common event triggered when the party is defeated. If it's predetermined (i.e. setting up battles via event commands), you set it to "continue if lose", subtract the amount of gold the player has / 2 (you would need to make a variable command prior to doing that though, which sets another variable = the player gold variable / 2) Then you go to the game over screen immediately after.
Greetings ShinyRedUmbreon,
I want to make a ATM. The reason for that is to put your money inside the ATM. If you get a game over, then you lose half of the money you have unless you had $0 in which nothing would be taken.

The question is how do I make a ATM, and how do I set it so there's that money taking death penalty?
This is a really interesting story game mechanic. I would love an explanation of why you lose half your money on dying. What is the banks reasoning for this? Why would the player want to use this money stealing ATM? 🙄

I'm not being sarcastic ... I really would love an explanation of why the bank is taking half your money ... I'm sure it is fascinating.

I think it has to be very creative. And it makes me think of lots more creative ideas on this:
  • Like are there insurance companies in the game with term life insurance?
  • Will the player take out term life insurance & try to collect?
  • Do the insurance companies then have fraud agents that come after the new player & try to put him in jail?
So many creative ideas ...

Anyway ... I'm waiting to hear your story game mechanic ...
​
Anticipating,

Joy Diamond.
Oh. I never interpreted it as the bank taking your money when you die. I just imagined it as you losing it, so you deposit it in the ATM to avoid losing money when you die. Or maybe I'm being stupid, I really don't know.
in pokemon, when you lose a battle, you must pay the other trainer. this is a similar concept.
Greeting,

Oh. I never interpreted it as the bank taking your money when you die. I just imagined it as you losing it, so you deposit it in the ATM to avoid losing money when you die. Or maybe I'm being stupid, I really don't know.
But who would go to a bank that takes half your money on a random event in your life (or in this case your temporary death)?
  • None of us would do this in real life ... I mean seriously ... the reason we use banks is we trust them NOT to randomly take our money. None of us, in real life would use a bank that took half our money.
  • Of course this is a game, so fantasy ... instead of real life ... This is why I really would love an explanation of why the bank is taking half your money
  • Giving something that is absurd in real life (a bank taking half your money) a game reason for existing, is one of the thing that makes game so fascinating & fun.
Fascinated,

Joy Diamond.
I made this as a common event for one of my games several years ago. It works great, and I even have a similar one for MV that adds interest at certain intervals, much like a real life account.
Let me explain in more detail:

First let me give a example:
You fight a rat, having $40. Then boom, eventually the rat kills you, since your only Level 1 and not yet strong to beat it. After the game over, you check how much money you are carrying and see you only have $20. That's because when you lose the game, you drop half of your money. It would make sense since in my game if you get a game over you lose consciousness instead of dying.

The ATM would be important because when you put your money in, you won't have to worry about losing money by dying. That's why I need a ATM and how to lose money when you get a game over script or event.

@Joy Diamond I am sorry you thought I meant the bank takes the money, but I meant the dropped loot.
@Joy Diamond I am sorry you thought I meant the bank takes the money, but I meant the dropped loot.

Thanks for the clarification. I had misunderstood

The question is how do I make a ATM, and how do I set it so there's that money taking death penalty?

The phrase "ATM, and how do I set it so there's that money taking death penalty" to mean the ATM was enforcing the money death penalty.

I now understand you want to use the ATM to avoid the money death penalty.
@ShinyRedUmbreon i have to make something like this for Beast Masters eventually. i will try to remember to notify you when i complete it.
This shows why we keep on suggesting that people do one query in one thread. Having 2 queries in the same thread can easily lead to this sort of confusion.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-atm-and-losing-money-when-dying.87363/