Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VX] Bank Event System

Started by ceegamus, April 22, 2008, 04:13:12 AM

0 Members and 1 Guest are viewing this topic.

ceegamus

EDIT:  whewt!  First Event System for VX (on RMRK, anyways)!!

I'm starting making a game in VX, and I decided I wanted a banking system.

The one I'm including is a direct copy from my game, so it uses variable 1.  If you want to use this in your game, either be sure variable one is open, or go through and change the event for your own devices.

If you use this in your game, credit would be nice, but not required.

Enjoy!

EDIT:  Screens for Everyone!!

[spoiler=Screens]


[/spoiler]

EDIT2:  Added an Input number style of banking.
This is a signature.

:)

people would love it if you included pictures of the event screen :)
Watch out for: HaloOfTheSun

ceegamus

OK, screens Posted.

Thanks for the heads up, Nouman.
This is a signature.

modern algebra

It's pretty nice, but I am wondering why do you make it so that you can only put in fixed amounts of money. I think it'd be better to use the Input Number command like this


@>Loop
  @>Text: \GHow much would you like to deposit?
  @>Input Number [XXX: Transaction Amount], 4 digits
  @> Control Variables: [YYY: Party Gold] = Gold
  @>Conditional Branch: Variable [XXX] <= Variable [YYY]
    @>Break Loop
    @>
    : Branch END
  @>Text: You do not have enough \v[XXX] Gold
  @>Show Choices: Let me try again..., Forget it
   : When [Let me try again...]
      @>
   : When [Forget it]
      @>Exit Event Processing
   : Branch End
:Repeat Above
@>Control Variables: [ZZZ: Money in Bank] += Variable [XXX: Transaction Amount]
@>Text: You now have \v[ZZZ] in the bank! Please come again


That would only be for deposit, but it'd be a similar thing for withdrawal. In any case, it would make it a bit more dynamic, and so I think it would be worth your time to do it that way.

ceegamus

I did it like I did because I'm not familiar with many of the event processes, including the Input Number.

Let me go revise it, and I'll post up both versions so people can choose.

What's the "\G" for?
This is a signature.

modern algebra

#5
\G will show the amount of gold the player currently has in a separate window.

Well, I started on a tutorial for all of the event commands a long time ago for RMXP. I never finished it and some of the explanations may be wrong (I haven't looked at it for a long long time), but I think it has all of the commands I used here. So, I'll send you over. It might help.

http://rmrk.net/index.php/topic,14229.0.html

ceegamus

OK, Input Style added on a new map on the same game, so it's a different .EXE with the files.
This is a signature.