001 Action / RPG Maker


TUTORIALS

 

Creating a Bank

by Stephen Chapman (PM)

See everything made by this user or team.

Rating

Very Helpful of 16 vote(s).

PRE-CREATION OF THE BANK
1. Create a variable named “Cash in Bank”. This represents the money your character has in his/her bank account.


CHARACTER CREATION (BANKER)
1. Create a character that will be the banker and will take and give you your money. Name him “Banker”.


2. From the banker, use the trigger “Talked to”.

3. Insert two local variables, one named “Deposit”, the other named “Withdraw”.

4. In the script, insert the event “Message Box”.

5. In this “Message Box”, you should create three options: Deposit, Withdraw and Leave.

DEPOSIT
1. Off the connection under Deposit in the “Message Box”, create the event “Input Box”. This lets the character enter his/her desired amount of money to deposit into the bank. For the input, write “How much money do you wish to deposit?” Under Save Input Into select your local variable “Deposit”.

2. Click OK and then insert the event “Comparison Branch”. For the first expression in this event, select your local variable “Deposit” from the small box next to the empty space. Under operator, select “Less than or equal”. Then finally under the second expression, click on the small box and scroll down through the list until you find the value “Amount of Money” (you may need to check Include All which can be found down the bottom-left of the window).
(Note: This event “Comparison Branch” is used to determine whether a character has enough money in their inventory to make a deposit.)


3. Click OK and then insert the event “Variable Operation” off the first connection in the “Comparison Branch”. Under variable, select the variable, “Cash in Bank”. Under value, select “add” and then from the small box select your local variable “Deposit”.
(Note: This event “Variable Operation” is used to determine where the amount of money the character wishes to deposit goes.)

4. Click OK and then insert the event “Change Money”. Under Amount of Money, select “Subtract” and then from the small box, select your local variable “Deposit”.
(Note: This event “Change Money” is used to subtract the amount of money the character wishes to deposit from their inventory and into the bank.)

5. Click OK and then insert the event “Message Box”. This message box is used to display that the money the character wishes to deposit has successfully been deposited into the bank. It should say something like “Transaction successful”.

6. Click OK. Now go back to the “Comparison Branch” where there is still an empty connection. Insert the event “Message Box”. This message box should be used to show that the character does not have enough money to make a deposit that they wished to place. It should say something like “You do not have enough money to make this transaction”.

7. All empty connections should be linked back to the first “Message Box” in the script.

WITHDRAW
1. Off the connection under Withdraw in the “Message Box”, create the event “Input Box”. This lets the character enter his/her desired amount of money to withdraw from the bank. For the input, write “How much money do you wish to withdraw?” Under Save Input Into, select your local variable “Withdraw”.

2. Click OK and then insert the event “Comparison Branch”. For the first expression in this event, select your local variable “Withdraw” from the small box next to the empty space. Under operator, select “Less than or Equal”. Then finally under the second expression, click on the small box and select the variable “Cash in Bank”.
(Note: This event “Comparison Branch” is used to determine whether a character has enough money in their bank to make a withdrawal.)

3. Click OK and then insert the event “Variable Operation” off the first connection in the “Comparison Branch”. Under variable, select the variable, “Cash in Bank”. Under value, select “Subtract” and then from the small box, select your local variable “Withdraw”.
(Note: This event “Variable Operation” is used to determine where the amount of money the character wishes to withdraw is being taken from.)

4. Click OK and insert the event “Change Money”. Under Amount of Money, select “Add” and then from the small box, select your local variable “Withdraw”.
(Note: this event “Change Money” is used to add the amount of money the character wishes to withdraw from the bank into their inventory.)

5. Click OK and then insert the event “Message Box”. This message box is used to display that the money the character wishes to withdraw has successfully been withdrawn from the bank. It should say something like “Transaction successful”.

6. Click OK. Now go back to the “Comparison Branch” where there is still an empty connection. Insert the event “Message Box”. This message box should be used to show that the character does not have enough money in the bank to make a withdrawal that they wished to place. It should say something like “You do not have enough money in the bank to make this transaction”.

7. All empty connections should be linked back to the first “Message Box” in the script.



 

There's been a total of 1759 views(s).
There's been 1005 people that have viewed.
You must be registered on the forums to vote.

 

Here you will find tutorials that the community has submitted. You get the opportunity to publish a tutorial down below.

Current Tutorials

Search

View by Category

Tutorials I Have Rated

Best Rated Tutorials
Most Rated Tutorials

Most Read Tutorial
Most Popular Tutorial

View by Creator

miroki123 (2)
evergreen (3)
Darkvoid (1)
Deedasmi (1)
AznaThira (3)
metomunc (2)
Neto (1)
Scaveleon (3)
Stephen Chapman (3)
gamer_dude001 (2)
Tehufn (1)
Now3r3 (4)
YunO (3)
lbdl (1)
C0c1 (3)
MIV (1)
coffeennicotine (1)
ammohead213 (1)
RPGking (3)
thutman (1)
K-Pone (8)
Ixayou (1)
Mr.Numbers (2)
hellblade (2)
manomomma (1)
epsilon017 (1)
Ovoon (1)
ves75 (2)
TheRunner (1)
icecolddude (1)
DS21 (1)
FacialXpression (2)
phosita83 (1)
haraldx (1)
In_the_Bushes (1)
alphakal (1)
todydejaca (1)
Gaba (1)
mm001 (1)

Tutorial Panel

Add a Tutorial

Pending Approval

18 Tutorials In Progress
1 Finished Tutorials