Announcement

Collapse
No announcement yet.

Setting up your own bank

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Setting up your own bank

    This will teach you to make a bank for depositing money.

    you can replace Gilda in the Variables and common event by whatever you call your currency.

    create 4 variables-

    [0001]:gilda held
    [0002]:deposit
    [0003]:b ank
    [0004]:withdrawl

    Then make a common event called "Money" with the following:



    <>Variable: [0001:gilda held]= Money
    <>Message: Balance: \c[3]\v[3]\c[0] Gilda
    : : Gilda on hand: \c[3]\v[1]\c[0]
    <>Show Choices: Deposit, Withdrawl, Do Nothing
    : [Deposit] Handler
    <>Conditional Branch: Variable [0001:gilda held] == 0
    <>Message: You don't have any Gilda to deposit.
    <>
    : Else Handler
    <>Show Choices: Fixed Amount, Custom
    : [Fixed Amount] Handler
    <>Message: Deposit how much of \c[3]\v[1]\c[0] Gilda?
    <>Show Choices: 1000, 10000, 100000, All
    : [1000] Handler
    <>Variable: [0002:deposit] = 1000
    <>Conditional Branch: Variable[0002:deposit]>Variable[0001:gilda held]
    <>Message: Not enough Gilda on hand.
    <>
    : Else Handler
    <>Message: You deposit \c[3]\v[2]\c[0] Gilda.
    <>Variable: [0003:b ank] += Variable [0002:deposit]
    <>Change Money: - Variable [0002:deposit]
    <>Variable: [0002:deposit]-= Variable [0002:deposit]
    <>Message: You now have a balance of \c[3]\v[3]\c[0] Gilda.
    <>
    : End
    <>
    : [10000] Handler
    <>Variable: [0002:deposit] += 10000
    <>Conditional Branch: Variable[0002:deposit]>Variable[0001:gilda held]
    <>Message: Not enough Gilda on hand.
    <>
    : Else Handler
    <>Message: You deposit \c[3]\v[2]\c[0] Gilda.
    <>Variable: [0003:b ank] += Variable [0002:deposit]
    <>Change Money: - Variable [0002:deposit]
    <>Variable: [0002:deposit]-= Variable [0002:deposit]
    <>Message: You now have a balance of \c[3]\v[3]\c[0] Gilda.
    <>
    : End
    <>
    : [100000] Handler
    <>Variable: [0002:deposit] += 100000
    <>Conditional Branch: Variable[0002:deposit]>Variable[0001:gilda held]
    <>Message: Not enough Gilda on hand.
    <>
    : Else Handler
    <>Message: You deposit \c[3]\v[2]\c[0] Gilda.
    <>Variable: [0003:b ank] += Variable [0002:deposit]
    <>Change Money: - Variable [0002:deposit]
    <>Variable: [0002:deposit]-= Variable [0002:deposit]
    <>Message: You now have a balance of \c[3]\v[3]\c[0] Gilda.
    <>
    : End
    <>
    : [All] Handler
    <>Variable: [0002:deposit] += Variable [0001:gilda held]
    <>Conditional Branch: Variable[0002:deposit]>Variable[0001:gilda held]
    <>Message: Not enough Gilda on hand.
    <>
    : Else Handler
    <>Message: You deposit \c[3]\v[2]\c[0] Gilda.
    <>Variable: [0003:b ank] += Variable [0002:deposit]
    <>Change Money: - Variable [0002:deposit]
    <>Variable: [0002:deposit]-= Variable [0002:deposit]
    <>Message: You now have a balance of \c[3]\v[3]\c[0] Gilda.
    <>
    : End
    <>
    : Cancel Handler
    <>
    : End
    <>
    : [Custom] Handler
    <>Message: Deposit how much of \c[3]\v[1]\c[0] Gilda?
    <>Input Number : [0002:deposit], 6 digits
    <>Conditional Branch: Variable[0002:deposit]>Variable[0001:gilda held]
    <>Message: Not enough Gilda on hand.
    <>
    : Else Handler
    <>Message: You deposit \c[3]\v[2]\c[0] Gilda.
    <>Variable: [0003:b ank] += Variable [0002:deposit]
    <>Change Money: - Variable [0002:deposit]
    <>Variable: [0002:deposit]-= Variable [0002:deposit]
    <>Message: You now have a balance of \c[3]\v[3]\c[0] Gilda.
    <>
    : End
    <>
    : Cancel Handler
    <>
    : End
    <>
    : End
    <>
    : [Withdrawl] Handler
    <>Conditional Branch: Variable [0003:b ank] == 0
    <>Message: You don't have any Gilda to withdrawl in the bank.
    <>
    : Else Handler
    <>Show Choices: Fixed Amount, Custom
    : [Fixed Amount] Handler
    <>Message: Withdrawl how much of \c[3]\v[3]\c[0] Gilda?
    <>Show Choices: 1000, 10000, 100000, All
    : [1000] Handler
    <>Variable: [000r:withdrawl] = 1000
    <>Conditional Branch: Variable[000r:withdrawl] > Variable[0003:b ank]
    <>Message: Not enough Gilda in bank.
    <>
    : Else Handler
    <>Message: You withdrawl \c[3]\v[4]\c[0] Gilda.
    <>Variable: [0003:b ank] -= Variable [0004:withdrawl]
    <>Change Money: + Variable [0004:withdrawl]
    <>Variable: [0004:withdrawl]-= Variable [000r:withdrawl]
    <>Variable: [0001:gilda held]= Money
    <>Message: You now have \c[3]\v[1]\c[0] Gilda on hand.
    <>
    : End
    <>
    : [10000] Handler
    <>Variable: [0004:withdrawl] += 10000
    <>Conditional Branch: Variable[000r:withdrawl] > Variable[0003:b ank]
    <>Message: Not enough Gilda in bank.
    <>
    : Else Handler
    <>Message: You withdrawl \c[3]\v[4]\c[0] Gilda.
    <>Variable: [0003:b ank] -= Variable [0004:withdrawl]
    <>Change Money: + Variable [0004:withdrawl]
    <>Variable: [0004:withdrawl]-= Variable [000r:withdrawl]
    <>Variable: [0001:gilda held]= Money
    <>Message: You now have \c[3]\v[1]\c[0] Gilda on hand.
    <>
    : End
    <>
    : [100000] Handler
    <>Variable: [0004:deposit] += 100000
    <>Conditional Branch: Variable[000r:withdrawl] > Variable[0003:b ank]
    <>Message: Not enough Gilda in bank.
    <>
    : Else Handler
    <>Message: You withdrawl \c[3]\v[4]\c[0] Gilda.
    <>Variable: [0003:b ank] -= Variable [0004:withdrawl]
    <>Change Money: + Variable [0004:withdrawl]
    <>Variable: [0004:withdrawl]-= Variable [000r:withdrawl]
    <>Variable: [0001:gilda held]= Money
    <>Message: You now have \c[3]\v[1]\c[0] Gilda on hand.
    <>
    : End
    <>
    : [All] Handler
    <>Variable: [0004:withdrawl] += Variable [0003:b ank]
    <>Conditional Branch: Variable[000r:withdrawl] > Variable[0003:b ank]
    <>Message: Not enough Gilda in bank.
    <>
    : Else Handler
    <>Message: You withdrawl \c[3]\v[4]\c[0] Gilda.
    <>Variable: [0003:b ank] -= Variable [0004:withdrawl]
    <>Change Money: + Variable [0004:withdrawl]
    <>Variable: [0004:withdrawl]-= Variable [000r:withdrawl]
    <>Variable: [0001:gilda held]= Money
    <>Message: You now have \c[3]\v[1]\c[0] Gilda on hand.
    <>
    : End
    <>
    : Cancel Handler
    <>
    : End
    <>
    : [Custom] Handler
    <>Message: Withdrawl how much of \c[3]\v[3]\c[0] Gilda?
    <>Input Number : [0004:withdrawl], 6 digits
    <>Conditional Branch: Variable[000r:withdrawl] > Variable[0003:b ank]
    <>Message: Not enough Gilda in bank.
    <>
    : Else Handler
    <>Message: You withdrawl \c[3]\v[4]\c[0] Gilda.
    <>Variable: [0003:b ank] -= Variable [0004:withdrawl]
    <>Change Money: + Variable [0004:withdrawl]
    <>Variable: [0004:withdrawl]-= Variable [000r:withdrawl]
    <>Variable: [0001:gilda held]= Money
    <>Message: You now have \c[3]\v[1]\c[0] Gilda on hand.
    <>
    : End
    <>
    : Cancel Handler
    <>
    : End
    <>
    : End
    : [Do Nothing] Handler
    <>Message: If you wish.
    <>
    : End
    <>



    Now just make an event on your map with some graphic, (preferably a person) and give them 2 events

    first one, a message with something unnaturaly nice in it. "good evening and welcome to the bank of my game"

    and second one, the common event "Money"

    set the trigger for action key and.....done............


    DEMO FOR THIS BANK CAN BE FOUND HERE-

    http://www.geocities.com/tsunokiette...eak_tester.zip



    P.S. you can copy from the demo.
    http://jurgenfauth.com/wp-content/up...predator-2.jpg

    #2
    Re: Setting up your own bank

    please read the forum rules before post. yet another post that belongs in the rpg maker general forum.

    Thank you Ωbright for the sig fix!
    Card Three is released! You can find it here!

    Comment


      #3
      Re: Setting up your own bank

      Topic moved to RPG Maker Workshop ->XP forum. Any XP related posts like this go here for future reference.
      Quote of the moment - "When you cut down a tree, don't stand near it."

      Comment

      Working...
      X