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.
Help with cooking system [Resolved]

0 Members and 1 Guest are viewing this topic.

pokeball APGOffline
**
Rep: +0/-0Level 82
in my game there is a cooking system(duh..).
Here's how it works.
you have 1 "butter" and 1 "bread"
you use the butter and a dialog comes up saying:

What do you want to make?
Buttered Bread
Buttered Toast

So if you select "buttered bread" it gives you one "buttered bread" (provide that you have the ingredients) while deleting 1 "bread" and 1 "butter".
This is all well, however, it takes  heck of a long time to make 10 "buttered bread" because you need to go to the "items" then select "BUTTER" then select "buttered bread".

So, does anyone know how I can change it to make a dialog saying:
How many?
1
2
5
10

while only giving you the selected amount of "buttered bread" if you have the right number of ingredients?

Thanks!
« Last Edit: November 02, 2009, 11:13:18 AM by APG »
Baaaa

*
Rep: +0/-0Level 82
You could make it look somewhat like this.

<>show choice: buttered bread/buttered toast
[Buttered bread] case
 Input 2 dg number Var. 182[buttered toast #]
 Set Var. 183 [butter] Set butter Hold Num
 Set Var. 184 [bread] Set bread Hold Num
  Fork condition: Var. 183 [butter] above Var. 182
    Fork condition: Var. 184 [bread] above Var. 182
    Add/Remove item: buttered bread-> Var. 182 Incr
    Add/Remove item: butter -> Var. 182 Decr
    Add/Remove item: bread -> Var. 182 Decr
    Else case:
    You dont have enough bread.
  Else case
  You don't have enough butter.
  End case.

Although i changed it from 1 2 5 or 10 you can just choose the amount you want to make once.

pokeball APGOffline
**
Rep: +0/-0Level 82
Baaaa