Notice: fwrite(): Write of 461 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - [VX] Bank Event System

The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Event Systems => Topic started by: ceegamus on April 22, 2008, 04:13:12 AM

Title: [VX] Bank Event System
Post by: ceegamus on April 22, 2008, 04:13:12 AM
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](https://rmrk.net/proxy.php?request=http%3A%2F%2Fi70.photobucket.com%2Falbums%2Fi100%2FCeegamus%2FRPG%2520Maker%2520Tuts%2FBank.jpg&hash=0a55decd20ab94e309f3a546667c0f229cdcaf8e)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi70.photobucket.com%2Falbums%2Fi100%2FCeegamus%2FRPG%2520Maker%2520Tuts%2FBank2.jpg&hash=2c8947cda38a95ec9c23250c8a8c04ea656d12f0)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi70.photobucket.com%2Falbums%2Fi100%2FCeegamus%2FRPG%2520Maker%2520Tuts%2FBank3.jpg&hash=eb867cdbc252a75700342e4278313495c6710449)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi70.photobucket.com%2Falbums%2Fi100%2FCeegamus%2FRPG%2520Maker%2520Tuts%2FBank4.jpg&hash=85164afe3f6f5b96d86e420e5da5083e3b05fab4)[/spoiler]

EDIT2:  Added an Input number style of banking.
Title: Re: Not sure where this goes... Bank Event System
Post by: :) on April 22, 2008, 04:37:49 AM
people would love it if you included pictures of the event screen :)
Title: Re: Not sure where this goes... Bank Event System
Post by: ceegamus on April 22, 2008, 08:30:04 PM
OK, screens Posted.

Thanks for the heads up, Nouman.
Title: Re: Not sure where this goes... Bank Event System
Post by: modern algebra on April 22, 2008, 10:29:43 PM
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.
Title: Re: Not sure where this goes... Bank Event System
Post by: ceegamus on April 23, 2008, 12:04:34 AM
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?
Title: Re: Not sure where this goes... Bank Event System
Post by: modern algebra on April 23, 2008, 12:05:27 AM
\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
Title: Re: Not sure where this goes... Bank Event System
Post by: ceegamus on April 23, 2008, 04:10:22 AM
OK, Input Style added on a new map on the same game, so it's a different .EXE with the files.