Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved]Can still buy things with 0 currency.

Started by firerain, June 24, 2007, 09:14:24 PM

0 Members and 2 Guests are viewing this topic.

firerain

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.

Qig

Aew you using the shop processing command?
Working on world of sorrow again.

firerain

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.

firerain


Kokowam

Can you upload your project or a demo containing the problem? I'd like to test it out myself and look through it.

firerain

Sure, I'll pm it to you, go to the top left or top right and talk to the people.

coolchaodude

To me, it sound like you forgot to make a conditional switch to check if the player has such amount of gold.

firerain

How do you do that? I'll go experiment for now.

Kokowam

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.

firerain

#9
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?

Jalkson

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.




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. 



Leventhan

That speaks all.
It SHOULD work now.
Best try it.

Be kind, everyone you meet is fighting a hard battle.

Kokowam

...LOL YOU CAN DO THAT? I did it with variables. ;9

Zeriab

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 ^_^