Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Custom Maximum Gold Tutorial
« previous next »
  • Print
Pages: [1] 2

Author Topic: Custom Maximum Gold Tutorial  (Read 7507 times)

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Custom Maximum Gold Tutorial
« on: July 26, 2008, 04:18:49 PM »
In my search to bring more balance to my own game I have come up with a simple way of customizing the max amount of money your character can have at any time.



Just replace the variables with ones that suit your games open variable slots, and change the places that say 50,000 to whatever you want the maximum amount of money to be. And your done.
Logged



Offline zuhane

  • Freakalicious
  • Leader
  • *
  • Posts: 2,192
  • Kill me
Re: Custom Maximum Gold Tutorial
« Reply #1 on: July 26, 2008, 04:24:54 PM »
That's ace! If only there was an item bag limit. Still, I want to use this one!
Logged
Geese ruined my life.

https://soundcloud.com/tom-kingston-3/geese

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #2 on: July 26, 2008, 05:45:29 PM »
This script can even be modified with conditional branches that check the level of your hero. And with each level chosen you can add this script to each branch and change the money.
Logged



Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Custom Maximum Gold Tutorial
« Reply #3 on: July 26, 2008, 08:26:19 PM »
I feel like an arse for doing this. Just let me know if you want me to remove it.

I had a wallet system once, and it looked pretty much like this.


The event checked if you had a larger wallet and then increased the maximum ammount of money.
And well, instead of having all of the variables I simply removed all money and added the maximum ammount(since if it exceeds the maxium then it must be the max if the wallet got a limit).

This way might be a bit more newb-friendly.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #4 on: July 26, 2008, 09:17:31 PM »
If you want we can just combine the 2 tutorials, you they can use one or the other. The one thing that worries me about your way is the multiple wallets, if thier all owned at once then it will still just pick the smallest one. If you want this to be more noob friend you must also go through and tell that they will have to remove the small wallet BEFORE adding the new one. This could get messy as well if they don't know how to use it. they would probably just sell the wallets in the shops. And you would have to tell them to make the wallet an item, a useless common item that does nothing. ANOTHER thing that could go wrong with this wallet thing is IF they decide to sell the wallet at a shop then the max amount will go back to the original max amount, and shops can buy all items if any at all. To fix this they would have to create another paralell common event that says

Branch- Shoppers Wallet possesed
    {Else} Branch- Small Wallet Possesed
                {Else} Branch- Large Wallet possesed
                            {Else} Remove 99999999999999 Gold

This is the problem I found with the wallet/bank account system when I though of it ealier, but the way I did seemed more noob approachable.
« Last Edit: July 26, 2008, 09:30:07 PM by Rahl »
Logged



Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #5 on: July 26, 2008, 09:28:27 PM »
Yes but shops DONT delete the old when when the new one is bought, and thus you would need to explain to people how it would have to be done.
Logged



Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #6 on: July 26, 2008, 09:36:50 PM »
Well theres still more scripting involved when getting the wallet and removing the old one. I was jsut saying that if any JUST uses this script and nothing else and they didnt know how to make sure they only had one and that you can sell any item in a shop if its in your inventory, then it wouldn't work for them.
Logged



Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Custom Maximum Gold Tutorial
« Reply #7 on: July 26, 2008, 10:18:33 PM »
Actually, my way checks the largest wallet first(therefore the "Shoppers wallet" at the top and "Small pouch" as the "else"), might've just been my fault that I didn't explain wich one was the largest.

And well, the wallets were earned through sidequests so there wan't any buy price on them. In other words, they couldn't be sold.
The largest one was bought for money though but the thing you actually bought just activated a common event that deleted the "dummy wallet" and added the real wallet(that had the buy price 0) so it wouldn't be able to be sold.

And I never deleted the old wallet in that old game btw. But just making a parralel process like this:

---------------------------------
<>:Shopper's wallet possesed
Remove item:Large pouch
 Remove item:Medium pouch
  Remove item: Small pouch.
   Remove item: Kid's wallet
----------------------------------

That wouldn't be too hard either.
Just removing all the smaller bags if you have the larger one that is. It's kinda like an easy way to eliminate all the possible combinations.
If you got the smallest, you'll lose it and get the new one. If you got the Medium, you'll lose that one with the same event.

______________
And with "newb friendly" I meant that the newbs would know what's going on. There have been newbs here for about a year before they realise the uses of variables. So using as little variables as possible is the best way to approach those people who are true newbs.

But yes, I should've been more descriptive and tell them that the wallets were "Common item" with "buy price" 0. I just wanted to show you how I did it. It wasn't really intended to hi-jack your tutorial after all. Just showing that it could be done kinda easier.

-------------------------------------------------------
<>Variable operation: [Max money] set money
<>Branch:If var [Max money] is 50000 greater
<>Change money: 999999 Remove
<>Change money: 50000 Add'
------------------------------------------------------

This is all that would've been needed actually. And I think that's more newb friendly to be hoenst.
The variable checks the money the party got.
The conditional branch checks if the money exceeds the max ammount(50000).
The event removes all possible ammounts money(to avoid checking exactly how much over 50000 it is).
The event then adds the max ammount of money (50000) since that's what you would've had if there was a limit of 50000.
______________
As I wrote earlier, variables can confuse newbs. This might make more sense to them rather than trying to explain the meaning of each variable operation.
« Last Edit: July 26, 2008, 10:49:55 PM by Prpl_Mage »
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #8 on: July 27, 2008, 12:51:39 AM »
I just didnt want to confuse them with adding more stuff than what there was I wrote. I guess that is all that was needed but when I script I like to do everything safe. For me its safer to script with multiple variables. I guess I didnt take that into account, but even noobs have to learn to use variables sometime. Your pretty good with scripting too, mage.
Logged



Offline Felix-0

  • And we'll never be
  • Royal
  • *
  • Posts: 3,563
  • (royals)
Re: Custom Maximum Gold Tutorial
« Reply #9 on: July 27, 2008, 01:48:40 AM »
why don't you place this in tutorials
Logged
------------------------------------------------------------
Hence nothing remains except for our regrets...
------------------------------------------------------------

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Custom Maximum Gold Tutorial
« Reply #10 on: July 27, 2008, 07:57:42 AM »
Quote from: Rahl on July 27, 2008, 12:51:39 AM

For me its safer to script with multiple variables. I guess I didnt take that into account, but even noobs have to learn to use variables sometime. Your pretty good with scripting too, mage.

I know the feeling, but I usually test the events in any way I can think of to make sure that they are solid.
And yes, noobs should learn the usage of variables.
But most newbs are 12-14 and some of them doesn't even want to learn complicated stuff. They just take a look at the coding(As we've posted) and copy it without truly knowing what's going on. And that is my concern.

Great job to both of us I assume? People who needs this can choose the safe way or the easy way now.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #11 on: July 27, 2008, 10:21:29 AM »
yep
Logged



Offline Muraiko

  • Cuddly Wuddly Snuggly
  • Zealot
  • *
  • Posts: 606
  • I'm really 4 years old... born on leap year...
Re: Custom Maximum Gold Tutorial
« Reply #12 on: July 28, 2008, 01:14:23 PM »
Wow... that looks alot like the Max Kranas common event in my game... except minus the "send your extra money to teh bank" thing... not trying to point any fingers of course...
Logged

http://www.charas-project.net/forum/index.php?topic=23774.0

Offline Rahl

  • Lord Of Gamedwellers
  • Leader
  • *
  • Posts: 2,356
Re: Custom Maximum Gold Tutorial
« Reply #13 on: July 28, 2008, 02:05:07 PM »
Well I made this system for my game from scratch because I needed to make it so you couldn't have over 50K because thers a gambling thing in it and you can just save and retry till you win. But actually I fixed that too making a wait time between wins. But I'm still usign this for it though.
Logged



Offline Muraiko

  • Cuddly Wuddly Snuggly
  • Zealot
  • *
  • Posts: 606
  • I'm really 4 years old... born on leap year...
Re: Custom Maximum Gold Tutorial
« Reply #14 on: July 28, 2008, 02:44:31 PM »
Oh, okay. Sorry. I guess I was just getting a bit paranoid. Lol!
Logged

http://www.charas-project.net/forum/index.php?topic=23774.0

  • Print
Pages: [1] 2
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Custom Maximum Gold Tutorial
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum