RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] I need script asistance

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 88
Hell... What did I mess up now... I'm Back!
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! ^^
« Last Edit: December 19, 2006, 05:50:35 PM by Blizzard »
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Use a conditional branch that checks gold amount before you make the player give money.

**
Rep:
Level 88
Shut up and leave me alone!
*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.



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.





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.




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.



Hope that helped.
« Last Edit: December 19, 2006, 02:17:03 AM by Wafflekid »
Hi...

***
Rep:
Level 88
Hell... What did I mess up now... I'm Back!
oh i see... i forgot about that conditional branch thing... hehe... and i call myself a game designer... -_- anyway... thanks for your helps guys!
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...