Author Topic: how do i make a bank with events  (Read 340 times)

the name says it please respond


When things are sold, add a money variable. Then, have different buttons for depositing different amounts of money. Example of a complicated bank:

  • Player gets $10.
  • The bank has 3 spots, for $1, $10, and $100 deposits.
  • Player goes to $100 spot, but that spot has it set so if the money variable is less than 100, it says "You don't have 100 dollars to deposit".
  • Player goes to $10 spot. It takes away the 10 money variables, and gives the player 10 bank money variables.
  • Both money and bank money variables are saved through variable saving events to prevent money exploits.
  • Player dies, and loses variables.
  • Player goes to $10 withdrawal spot.
  • It loads his 10 bank variables and saves them a few seconds before it checks for them.
  • It takes away his 10 bank money, and gives him 10 money.
  • Another save to prevent exploits.

Note: This is what I did. There are bound to be other ways out there. I suggest just doing a save/load money area. It's a lot easier.

  • Player gets $10.
  • Player clicks "Save" spot.
  • Money is saved.
  • Player dies and loses variables.
  • Player clicks "Load" spot.
  • Money is loaded.

If you're just starting out with variables, I suggest using the second one. You might just want to stick with it, actually.

If you need any help with what the events would be for these, just ask. I'll get back to you when I can.