Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker XP > A Banking system with origanal link to the owner's version

A Banking system with origanal link to the owner's version


NOTE:
I was seeing if this worked on XP and it does. Now I give credit to the person who orianal made this Sizux.
Now I added view to it so you don't have to deposit/withdraw to just view how much you got.
The ones I added will be in ~.

origanal link: http://www.rpgrevolution.com/tutorial/[beginner]-withdrawdeposit-bank-system_133.html

Quote:

For this tutorial, you'll need:


[3] Variables
[1] Common Event


First off, open up the Database (F9) and click the "Common Events" tab. Name it "Bank", and keep the Trigger at "None". Here is the processing for the bank. Keep in mind that the variable numbers may be different than yours. Also note that the greeting and notification messages can (and should) be changed.

NOTE: The bolded text after each command explains it

ALSO NOTE: I typed this w/ spaces, but for some reason the BBCode decided to be moronic and not include them. So, this looks like a huge wall of text.


Quote:


Control Variables: [0001:Money_Held] = Gold (Updates the Player's current gold into the variable )
Message: Welcome to the bank! Please select an action. (A welcoming message )
Label: Options (Used to revert back to this point later on )
Show Choices: Withdraw, Deposit, ~View~, Leave (Gives the player options )
: When [Withdraw]
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
Message: You currently have \v[2] gold in this account! How much would you like to withdraw? (Shows the variable \v[2] which is Money_Banked )
Label: Before Withdraw (Used to revert back to this point later on )
Input Number: [0003:Money_Transaction], 8 digit(s) (Allows the Player to input a number. Digits means how many digits of numbers they can enter to deposit/withdraw )
Conditional Branch: Variable [0002:Money_Banked] >= Variable [0003:Money_Transaction] (Checks to see if the money in the bank is greater than the money the Player inputed )
Message: Are you sure you would like to withdraw \v[3] gold? (Confirmation message )
Show Choices: Yes, No (Obvious )
When [Yes]
Change Gold + Variable [0003:Money_Transaction] (Adds gold equal to the Player's input (amount withdrew) )
Control Variables: [0002:Money_Banked] -= Variable [0003:Money_Transaction] (Removes the money in the bank by the Player's input )
Message: You've received \v[3]. Have a good day.
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
When [No] (When "No" is selected )
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
Jump to Label: Before Withdraw (Jumps back to the withdraw screen )
Branch End (Ends branch )
Else (If the Player does NOT have enough gold to withdraw )
Message: You do not have enough gold in your bank account (Haha. Sucker. )
Jump to Label: Options (Reverts back to the beginning screen )

When [Deposit] (If the Player chose deposit )
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
Message: You currently have \v[1] gold on hand. How much would you like to deposit? (\v[1] shows the gold the player has. )
Input Number: [0003:Money_Transaction], 8 digit(s) (Allows the Player to input a number. Digits means how many digits of numbers they can enter to deposit/withdraw )
Conditional Branch: Variable [0001:Money_Held] >= Variable [0003:Money_Transaction] (Checks to see if the player has enough money to deposit )
Message: Would you like to deposit \v[3] gold? (Confirmation message )
Show Choices: Yes, No
When [Yes] (If yes is selected )
Change Gold: - Variable [0003:Money_Transaction] (Removes the number of gold inputed by the Player because he deposited it )
Control Variables: [0002:Money_Banked] += Variable [0003:Money_Transaction] (Adds the money deposited to the bank variable )
Message: Your gold has been deposited. Have a good day. (Hey guys this text is bold )
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
When [No] (If "No" is selected )
Control Variables: [0003:Money_Transaction]=0 (Used to prevent miscalculations later )
Jump to Label: Before Deposit (Reverts back to the choice menu )
Branch End
Else
Message: You do not have enough gold to deposit (Displayed if the gold transaction is greater than the gold held )
Jump to Label: Options (Reverts back to the options screen )
Branch End
~When View:
Text: You have \v[2] in your account. (something along the line of that)~
When [Leave]
Branch End

Details
Tutorial: A Banking system with origanal link to the owner's version
Date Listed: 2011-08-31
Author: Princessbinas
Total Hits: 1427


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal