Alright, I am wanting to do this for my game... I want it so you can be able to pay a set amount of gold to do something and then it does the action... but I came across a little problem. I found that you could literally pay without actually spending any money at all. So I basically need a scrip that does this... I also tried searching for a bit but got no where.
1. Checks to see if you have enough gold (I believe it is --- if "money amount here" <= $game_party.gold ---).
2. Takes away the set amount of money.
3. Display a message that it accepted the money.
4. If they don't have enough money then it doesn't take any money and displays a message that they didn't have enough cash.
Thanks to all that help. I appreciate it! ^^
Use a conditional branch that checks gold amount before you make the player give money.
*You replied before me...I just explained it in a nooby way so he will understnad.
You don't need a script. You can use a series of events to do what your trying to do.
First make an event.
1. Use a conditional branch. Set it so that you need x amount of gold or more.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg141.imageshack.us%2Fimg141%2F510%2Fh5pw0.png&hash=ad4deda2afb70eff8c87da53a15e47de2575ab32)
2. Now use the "Change Gold..." event command.and place it where the red circle is in the picture. Set it at decrease and then were it says constant, place the amount of money is taken away. It should look somthing like the picture below.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg149.imageshack.us%2Fimg149%2F7522%2Fh3ax0.png&hash=5357a1b26dd37075c76d3feec9bf64c71f198841)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg120.imageshack.us%2Fimg120%2F9863%2Fh4ub3.png&hash=3138fa50a951d4166961cd357b430e2c19cd0173)
3. Next use the "Show Text" command. Then type what you want it to say.
4. Make another event command under your conditional branch where it says "else" Place the text you want there.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg479.imageshack.us%2Fimg479%2F6999%2Fh2pu2.png&hash=bf21f2bc6871054cdc6aa554535b282f5585e03c)
When your done the events should look somthing like this but with the different text that you chose and the different amount of money you chose.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg120.imageshack.us%2Fimg120%2F4392%2Fh1iz2.png&hash=65773e293e87aaedaca9bc1beae77619122ca520)
Hope that helped.
oh i see... i forgot about that conditional branch thing... hehe... and i call myself a game designer... -_- anyway... thanks for your helps guys!