The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: firerain on June 24, 2007, 09:14:24 PM

Title: [Resolved]Can still buy things with 0 currency.
Post by: firerain on June 24, 2007, 09:14:24 PM
Well, here's my problem. I can't buy things from the actual vendor stores using the shop processing event. But I made a  few event things such as a STAT increaser and  teleporter. The problem is, I can still use those things when I have 0 gold. The STAT increaser takes away 150 gold (I checked the event and it's fine) and the teleporter takes away 20 gold.

Any idea on how to get it not to do this? Any script that could stop this?

~Yours truly, Lac.
Title: Re: Can still buy things with 0 gold.
Post by: Qig on June 24, 2007, 10:16:33 PM
Aew you using the shop processing command?
Title: Re: Can still buy things with 0 gold.
Post by: firerain on June 24, 2007, 10:43:27 PM
I mentioned that in  the above post.

Yes, I  am. But as I stated, I'm using custom vendors to increase STATS such as STR, DEX, AGI, etc... Which do not use the shop processing command/event.
Title: Re: Can still buy things with 0 currency.
Post by: firerain on June 24, 2007, 11:07:17 PM
Someone answer this please.
Title: Re: Can still buy things with 0 currency.
Post by: Kokowam on June 25, 2007, 01:08:07 AM
Can you upload your project or a demo containing the problem? I'd like to test it out myself and look through it.
Title: Re: Can still buy things with 0 currency.
Post by: firerain on June 25, 2007, 01:38:07 AM
Sure, I'll pm it to you, go to the top left or top right and talk to the people.
Title: Re: Can still buy things with 0 currency.
Post by: coolchaodude on June 25, 2007, 01:48:49 AM
To me, it sound like you forgot to make a conditional switch to check if the player has such amount of gold.
Title: Re: Can still buy things with 0 currency.
Post by: firerain on June 25, 2007, 01:49:35 AM
How do you do that? I'll go experiment for now.
Title: Re: Can still buy things with 0 currency.
Post by: Kokowam on June 25, 2007, 01:55:58 AM
No need to tell him. I'm going to edit his game for all the edits and I'm going to PM with the link later.
Title: Re: Can still buy things with 0 currency.
Post by: firerain on June 25, 2007, 01:57:50 AM
I don't think I included the  rpgxp file with it. Just the .exe to play the game and the images. Do you want the file?
Title: Re: Can still buy things with 0 currency.
Post by: Jalkson on June 25, 2007, 05:49:33 AM
Quote from: mastermoo420 on June 25, 2007, 01:55:58 AM
No need to tell him. I'm going to edit his game for all the edits and I'm going to PM with the link later.

Wouldn't it be much better to just tell him how to do it?  He would benefit a lot more from learning how to do a simple condition check, than from you editing it for him.

@ Lac

What you need to do is make a conditional branch that checks if they have enough currency to buy the item.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi67.photobucket.com%2Falbums%2Fh296%2FJalkson%2Funtitled-1.png&hash=31302ce7c3d76a4f3dc9125e6ac8a97cabd9bbc5)


1: Conditional branch button.

2: Page to find the Currency option.

3: Check the currency/gold box.

4: Enter the amount of gold they need to buy the item.


That should be enough to get you started, in order for me to really help you out, I would need to see the event also. 


Title: Re: Can still buy things with 0 currency.
Post by: Leventhan on June 25, 2007, 10:26:19 AM
That speaks all.
It SHOULD work now.
Best try it.
Title: Re: Can still buy things with 0 currency.
Post by: Kokowam on June 25, 2007, 10:32:30 AM
...LOL YOU CAN DO THAT? I did it with variables. ;9
Title: Re: Can still buy things with 0 currency.
Post by: Zeriab on June 26, 2007, 08:55:44 PM
Yup, you can do it that way, and with variables and with the script thingie in the branch.
If you for some reason want to store the gold amount and use it for some computation later it might be a good idea putting the information in a variable ^_^