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.
Cooking Script?

0 Members and 2 Guests are viewing this topic.

**
Rep: +0/-0Level 89
I was wondering, how about a cooking script?

It's just like using potions but you have the option to cook after battle and/or cook once outside of battle.

If anyone has played Tales of Symphonia then you'd understand what I'm trying to get at.  :?

Thanks in advance  :^^:
Co-Webmaster of The Gaming Alliance

Thanks to TheRaven off of The Players Guild.
R.P.G. Fan Game Status
[--TLOZ: Fierce Entity--]|||||||||||||||||||| - 3%

*
Resident Cloud
Rep:
Level 91
hmmm....id like this to...

you killed a ghost
a ghost dropped a healing leave and an empty vial

at a cooking pot:
you boil the leaf in water and boil the liquid into a vial.

you made 1 potion

or maybe even food

you baked the dough into bread

ill keep checkiing back :)
-------------------------------------------------------------------------------------
I DID NOT MAKE THIS SCRIPT
Here is a script that I recently wrote that allows for all those blacksmithing and cooking type trades. I hope you like. Let me know if you have any problems with it.



I will try to give a good explanation on how to use this script.

First of in order to craft an item, you need to create a recipe. A recipe has 5 things.
1. INGREDIENTS (part 1)
An array of items used to make the desired object. These arrays simply consist of the indexes of the object taken form the database. For example, in the picture below the index of a tablet is 30. The indexes of a card and fruit would be 31 and 32, respectively. If we wanted to make a recipe that used all three objects, our ingredients array would look like the following:
[30,31,32]


NOTE: Even if you only need 1 ingredient you should encapsulate it as an array. For example, the proper syntax would be [15], not 15.


2. INGREDIENTS (part 2)
You may not want all your recipes to be made only items. Maybe you want a recipe that uses a regular sword combined with dragon breath to make a fire sword. In order to make this possible you have to specify in your recipe what type of ingredients you are using. Ingredients can be items, armors, or weapons. I use the following convention (consistent with the default programming)
-items are type 0
-armors are type 1
-weapons are type 2

So, in my example, all the "ingredients" are items, so my type array would be [0,0,0].
NOTE: The type list should always be the same size as the ingredients list.

3. INGREDIENTS (part 3)
Well now that we know what type the ingredients are and what there index is, what else could we possibly need to know? You guessed it, we need to know how many of each ingredient the recipe requires. Suppose we just wanted 1 of each type of ingredient, our array would look like this: (This array should be the same size as the other two.)
[1,1,1]

4. THE RESULT (part 1)
Just like with the ingredients you need to tell the recipe what the index is of the object you want to create. The only difference is that now it doesn

**
Rep: +0/-0Level 89
whey! you rawk man! I haven't tried it out yet, but when I do, I'll let you know if I come across any errors or problems.
Co-Webmaster of The Gaming Alliance

Thanks to TheRaven off of The Players Guild.
R.P.G. Fan Game Status
[--TLOZ: Fierce Entity--]|||||||||||||||||||| - 3%

*
Resident Cloud
Rep:
Level 91
i restate i did not write this script

***
Rep:
Level 89
umm why not just use events, like a conditional branch
Badass, and a do'er not a thinker

*
Resident Cloud
Rep:
Level 91
meh this is easier

**
Rep: +0/-0Level 89
Quote from: Jesse 015
umm why not just use events, like a conditional branch


yeah, the script is easier. Plus you don't have to work with those crazy switches lol
Co-Webmaster of The Gaming Alliance

Thanks to TheRaven off of The Players Guild.
R.P.G. Fan Game Status
[--TLOZ: Fierce Entity--]|||||||||||||||||||| - 3%

***
Rep:
Level 89
Yeah your right, the script is better then using CB's..
Anyway, I don't care, I don't mind using CB's either =P
Started RPG making once again!

**
Rep: +0/-0Level 88
All work will stop and the ground will releive...
hello
did this script disappear? can someone send it to me or repost it please?
Secret of the Summit: [Working Title]
Scripts: nearly complete (need skill shop)
Storyline: complete
Database: 50%
Game Progress: 10%


**
Rep: +0/-0Level 86
personally, i disagree about  using scripts over event commands. I have been in the RPG Maker scene since RM2K came out, and I though it rocked. 2K3 was even better, and I spent almost a year practicing with events (practicing = making cool stuff, but never posting or publishing anything) I learned a lot from Dragon Destiny and I even made an entire HUGE CMS using only events. in that case, scripting would have been easier, but due to my experience with events, to do simple things like cooking/profession systems, it is so easy to just use a couple variables, switches, and conditional branches in a Common Event to always monitor the characters progress.

I might concede though, that due to the efficiency of the game engine (or lack thereof) scripts are less demanding in general, and produce less lag, then having 6 GIANT events that control literally hundreds of things...

Power to the Events!

***
Rep:
Level 87
ohheythar :O
Script, NAO!

*
Rep:
Level 93
<o>_<o>
2014 Funniest MemberParticipant - GIAW 11Bronze - GIAW 92011 Best RPG Maker User (Creativity)
personally, i disagree about  using scripts over event commands. I have been in the RPG Maker scene since RM2K came out, and I though it rocked. 2K3 was even better, and I spent almost a year practicing with events (practicing = making cool stuff, but never posting or publishing anything) I learned a lot from Dragon Destiny and I even made an entire HUGE CMS using only events. in that case, scripting would have been easier, but due to my experience with events, to do simple things like cooking/profession systems, it is so easy to just use a couple variables, switches, and conditional branches in a Common Event to always monitor the characters progress.

I might concede though, that due to the efficiency of the game engine (or lack thereof) scripts are less demanding in general, and produce less lag, then having 6 GIANT events that control literally hundreds of things...

Power to the Events!

This thread has nothing to do with whether or not you like events, so quit preaching.

ahref basically covered it clearly, but it'd be nice to see a coded version of it :o

I wish I could add a cooking script to women ;9

***
Rep:
Level 87
ohheythar :O
Where do I put the recipes?

*
A Random Custom Title
Rep:
Level 96
wah
personally, i disagree about  using scripts over event commands. I have been in the RPG Maker scene since RM2K came out, and I though it rocked. 2K3 was even better, and I spent almost a year practicing with events (practicing = making cool stuff, but never posting or publishing anything) I learned a lot from Dragon Destiny and I even made an entire HUGE CMS using only events. in that case, scripting would have been easier, but due to my experience with events, to do simple things like cooking/profession systems, it is so easy to just use a couple variables, switches, and conditional branches in a Common Event to always monitor the characters progress.

I might concede though, that due to the efficiency of the game engine (or lack thereof) scripts are less demanding in general, and produce less lag, then having 6 GIANT events that control literally hundreds of things...

Power to the Events!

This thread has nothing to do with whether or not you like events, so quit preaching.

ahref basically covered it clearly, but it'd be nice to see a coded version of it :o

I wish I could add a cooking script to women ;9
Lol and you posted in the RM forums. :o Also, if you're using scripts, I recommend you read the instructions if it's there. :P

**
Rep: +0/-0Level 88
All work will stop and the ground will releive...
so umm... regardless whether or not you like the script, can someone send it to me? cuz its cut off and theres no script here.
Secret of the Summit: [Working Title]
Scripts: nearly complete (need skill shop)
Storyline: complete
Database: 50%
Game Progress: 10%


***
Rep:
Level 87
ohheythar :O
Where do I put recipes? ANSWER, NAO!