[Eventing] Gold Banking

Go down

[Eventing] Gold Banking

Post by omegas7 on Sat Apr 24, 2010 6:55 pm

Gold Banking Tutorial
Let the player store and retrieve Gold from a bank account.

All Variables Used:
01 - "Transacting"
02 - "Deposited"
03 - "Gold In Pockets"

Step 1.
First we will start our banker account with a greeting and the choices we want.


Step 2.
Lets work with the Deposit function. We will use the 'number input' event command to ask the user for the amount of gold to deposit, the selected value will be stored in Transacting, then check if the player has enough gold in his/her bag using Gold In Pockets, and, if so, execute the transaction by increasing the Deposited variable by the value selected, and, of course, decrease the party's gold by that same value.


Step 3.
The withdraw part is very similar to the depositing part, technically, backwards :p.





Last edited by omegas7 on Wed Nov 10, 2010 9:25 am; edited 1 time in total
avatar
omegas7
Admin
Admin

Posts : 1180
Gald : 4121

Stats
Cookies: 0

View user profile http://www.omegadev.biz

Back to top Go down

Re: [Eventing] Gold Banking

Post by Dezz123 on Sat Apr 24, 2010 7:04 pm

Woah.... This is awesome, Omega! Razz
Gonna make a bank in my game, and I needed to know how to make something like this... Thanks, a lot!
avatar
Dezz123
Legendary
Legendary

Posts : 1534
Gald : 6469

Stats
Cookies: 0

View user profile http://www.dezzgames.webs.com, www.evalon.webs.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum