Making A ATM And Losing Money When Dying?

ShinyRedUmbreon

Wannabe-Animator + Gamer
Veteran
Joined
Sep 3, 2017
Messages
61
Reaction score
12
First Language
English
Primarily Uses
RMVXA
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?
 

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
1,879
Reaction score
3,349
First Language
English
Primarily Uses
RMVXA
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.
 

Joy Diamond

Talkative
Veteran
Joined
Nov 12, 2017
Messages
135
Reaction score
173
First Language
English
Primarily Uses
RMMV
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? :rolleyes:

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.
 

HexMozart88

The Master of Random Garbage
Veteran
Joined
May 15, 2016
Messages
1,879
Reaction score
3,349
First Language
English
Primarily Uses
RMVXA
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.
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
306
First Language
English
Primarily Uses
RMMV
in pokemon, when you lose a battle, you must pay the other trainer. this is a similar concept.
 

Joy Diamond

Talkative
Veteran
Joined
Nov 12, 2017
Messages
135
Reaction score
173
First Language
English
Primarily Uses
RMMV
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.
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
395
Reaction score
297
First Language
English
Primarily Uses
RMMV
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.
 

Attachments

ShinyRedUmbreon

Wannabe-Animator + Gamer
Veteran
Joined
Sep 3, 2017
Messages
61
Reaction score
12
First Language
English
Primarily Uses
RMVXA
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

Talkative
Veteran
Joined
Nov 12, 2017
Messages
135
Reaction score
173
First Language
English
Primarily Uses
RMMV
@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.
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
306
First Language
English
Primarily Uses
RMMV
@ShinyRedUmbreon i have to make something like this for Beast Masters eventually. i will try to remember to notify you when i complete it.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top