Crafting Script v3.8 - Updated 2/26/2015

@luiscesjr: oh both the demos are 3.2, I just forgot to update the text. The media fire link is a rar file and the dropbox one is a unencrypted compressed project. Compressing the project is my preferred way to send projects, but I understand it gives virus warnings to lots of folks.. so I gave the rar option. Oh and I got the pm 🙂 will see about getting those into the main post.

@sixth: aaaaah ok! thought for some reason it was still broke and you had me wanting to smash my head on the table =P And feel free to pm me with questions on setting it up or to look over things 🙂
Hello, I found another problem.

The item "Alchemy 101", something is wrong.

By purchasing it, you automatically get the recipes.
It is not consumable.
It is activatable.
You do not need a hero on the team to use the new recipes.
If you sell, you will not lose the recipe.

In theory, in game, the best thing that the player will make, will buy the book and sells it at the same moment.

Or I interpreted wrong, or is there something wrong with him.
I must have broke something because the book should auto consume when purchased. thanks for finding it. I'm not at a PC so the fix might have to come later.
I have to congratulate you. The script is very good.

I was in doubt regarding the operation of the Specific Recipes.
Is there a way of Recipe / Formula only appear if the hero is in the party?

example:
1 - "Actor 1" is the party
2 - appears on the list of recipes "Cozinhar-> Items ID 2, 4, 5, 6, 8, 10)
3 - "Actor 1" is not in party
4 - Appears on the list of Recipes "Cozinhar-> Items ID 2,4,6)

ID items 8 and 10, are unique in "Actor 1"

Or a book that can only be read by the "Actor 1" (even if it is permanently in the inventory), but to remove the "Actor 1" of the party, the "Recipes from the book" are also removed from the list of recipes on the menu .


I'm sorry if I have done something wrong observation.
My English is not very good, which makes the understanding of some messages.




Ps Just curious, there's the possibility of adding new tabs?
example:
At present time: "Cooking, Blacksmith and Alchemist"
Add other .. example: "Writer .. Engineer .. or any other."

Would it be viable?
You can make new craft types at the - Craft_Info Settings - in the customize settings.

So yeah, you can make Writer, Engineer, etc type of crafts, as many as you want.

It will show up in the Recipe Menu add on too.

Hmm... Writer and engineer crafts? Star Ocean fan by any chance? 😀

For the actor recipes, go to the Actor Specific Recipes add on, and set the Actor_Access settings to :active.

This means that actor specific recipes will only show up when the required actor is in the active party.

Setting up actor specific recipes require the use of note-tags in the actor or class database setup.

You can find the note-tags in the mentioned add on, almost right at the beginning.

Or if you mean that you can still see the actor specific recipes, even after the required actor left the party, than I guess that should not be like that. But I never actually tested that add on, so I don't know how it operates yet.
You can make new craft types at the - Craft_Info Settings - in the customize settings.

So yeah, you can make Writer, Engineer, etc type of crafts, as many as you want.

It will show up in the Recipe Menu add on too.

Hmm... Writer and engineer crafts? Star Ocean fan by any chance? 😀

For the actor recipes, go to the Actor Specific Recipes add on, and set the Actor_Access settings to :active.

This means that actor specific recipes will only show up when the required actor is in the active party.

Setting up actor specific recipes require the use of note-tags in the actor or class database setup.

You can find the note-tags in the mentioned add on, almost right at the beginning.

Or if you mean that you can still see the actor specific recipes, even after the required actor left the party, than I guess that should not be like that. But I never actually tested that add on, so I don't know how it operates yet.
Did I do something wrong?

The "Poison" appears in revenues window, but when I put the cursor over it, this error appears:

"Script 'Window_Command' line 74: NoMethodErro ocurred.

Error Ocurred, check the debug console for more information "

Spoiler
  Craft_Info[1] = {  # Cooking    :craft_name    => "Cozinha",    :exp_table     => [ 10, 5, 12, 20],    :max_level     => 3,    :mastered      => "Mestre da Culinária",    :bg_image      => "Book",    :bg_music      => nil,    :active_sound  => ["Fire", 100, 100],    } # <-DO NOT REMOVE  Craft_Info[2] = {  # Blacksmith    :craft_name    => "Ferreiro",    :exp_table     => [ 12, 3, 20, 15],    :max_level     => 30,    :mastered      => "Master Smith",    :bg_image      => "CrossedSwords",    :bg_music      => nil,    :active_sound  => ["Hammer", 100, 100],    } # <-DO NOT REMOVE  Craft_Info[3] = {  # Alchemy    :craft_name    => "Alquimista",    :exp_table     => [ 10, 0, 10, 10],    :max_level     => 35,    :mastered      => "Potion Genius",    :bg_image      => "Hexagram",    :bg_music      => ["Dungeon7", 90, 100],    :active_sound  => ["Drips", 100, 100],    } # <-DO NOT REMOVE  Craft_Info[4] = {  # Poison    :craft_name    => "Poison",    :exp_table     => [ 12, 3, 20, 15],    :max_level     => 30,    :mastered      => "?????",    :bg_image      => "CrossedSwords",    :bg_music      => nil,    :active_sound  => ["Hammer", 100, 100],    } # <-DO NOT REMOVE



====== EDIT ====

***** @Sixth World of Warcraft 🙂

imagem1.JPG

imagem2.JPG

imagem3.JPG

imagem4.JPG
I'll check into that error in the morning.

As for the actor specific recipes.. I'll have to double check that I didn't break something in one of the updates, but you should be able to set how it works. So you can set recipes to craft if the actor that knows it is the leader, if the actor is in the active (main) party or in the party (but in the reserve party). Depending on the setting, you might not get to craft an item. The recipes should go away if .. say Eric knows them and you set it so that he can only craft if he is the leader, then if he's in position 2, then you wouldn't be able to do his alchemy recipes.

Hope this clears up how it's suppose to work. There is a guy on the wall to the right that talks about the actor specific add on. It's in english so no clue how much it will help =(
That error pops up if you haven't made any recipes in that category and want to see it.
Make a recipe in it, and it won't pop up.
 
But that is not an ideal fix for it, as some craft types could start with no recipes learned at the beginning of the game.
A switch for each craft type would be awesome, so the craft types would only appear in the recipes menu when that switch is on.
 
But Venka posted a fix for that nil cursor bug a few posts before, shouldn't that fix this issue too?
I believe both comes from the same source.
I still haven't tried those fixes, maybe I will have some time tonight to check them out. >.>
 
Edit:

And nothing seems broken with that edit so far. 😀

Ok, nevermind the previous edit of mine, that actually broke some things in the actor stat changes add on, lol.

Edit again:

The nil cursor bug-fix didn't actually fix the 'nil cursor', instead it moved the cursor to the first slot from the item menu. This is a good solution if the player got recipes learned in that craft type.

But if the player doesn't learned anything there yet, the cursor will get the nil error again, obviously, because there are no items to display there yet.

So if someone wants to avoid that error, every craft type should have at least one learned recipe.
Ok. got a chance to look at the bugs. For the Alchemy 101 Book you can buy in the shop. I forget I put a setting in there that lets you decide if you want to keep the books when you buy them.. or not. So if you want the books to be consumed when you learn the recipes set this to false:

Keep_Item = falseFor the issue of having no recipes in a craft type update this add on to this one to fix it:

https://www.dropbox.com/s/4m7xkhajz842li5/Crafting%20Actor%20Stats.txt

For the actor specific add on. I can't find an issues with it.

Spoiler
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Actor Recipe Access Setting - #-------------------------------------------------------------------------- # You can set how you want to access the actor's known recipes. # 😛arty - the actor must have joined the party # :active - the actor must be in the active party # :leader - the actor must be the party leader # NOTE: if there is a typo in any of the commands it will default to # leader mode. So if it's doing that to you when you don't want it to, # double check the command #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Actor_Access = :activeThat's the default setting in the demo. If you put Eric in the reserve party, then you can no longer craft his alchemy recipes. If you change Actor_Access to :leader, then if Eric isn't the leader, you won't be able to craft his recipes. And lastly 😛arty would let you craft the recipes any time Eric is in the party (in the active battle party or in the reservers.. it doesn't matter).
Sorry didn't have much access to my pc yesterday, so if I missed an issue let me know 🙂
Fixes are working.

I just noticed, that we can press the button for the actor stats addon in the recipe menu even when we are on the craft type selection menu, and not inside the item selection menu.

Once we do this, there is no way (that I know of yet, but still testing) to make the actor stats window disappear. The only way is if we exit the recipe menu and re-enter it.

But it should not be possible to bring up the actor stat menu on the craft type selection, or is it? o.o

Also, the last time I checked, I could only buy a recipe from a shop once, regardless which option I set for that 'Keep_Item' settings.

Now I can buy infinite amount. Is that normal, or a bug?

And finally, I spent some time to make this craft shop/decon addon work with Yanfly's Shop Options.

I mean, it was working in functions anyway, but the command list which you have overwritten made quite a mess with the Shop Scene. 😀
Ok. got a chance to look at the bugs. For the Alchemy 101 Book you can buy in the shop. I forget I put a setting in there that lets you decide if you want to keep the books when you buy them.. or not. So if you want the books to be consumed when you learn the recipes set this to false:

Keep_Item = falseFor the issue of having no recipes in a craft type update this add on to this one to fix it:

https://www.dropbox.com/s/4m7xkhajz842li5/Crafting%20Actor%20Stats.txt

For the actor specific add on. I can't find an issues with it.

Spoiler
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Actor Recipe Access Setting - #-------------------------------------------------------------------------- # You can set how you want to access the actor's known recipes. # 😛arty - the actor must have joined the party # :active - the actor must be in the active party # :leader - the actor must be the party leader # NOTE: if there is a typo in any of the commands it will default to # leader mode. So if it's doing that to you when you don't want it to, # double check the command #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Actor_Access = :activeThat's the default setting in the demo. If you put Eric in the reserve party, then you can no longer craft his alchemy recipes. If you change Actor_Access to :leader, then if Eric isn't the leader, you won't be able to craft his recipes. And lastly 😛arty would let you craft the recipes any time Eric is in the party (in the active battle party or in the reservers.. it doesn't matter).
Spoiler
Sorry didn't have much access to my pc yesterday, so if I missed an issue let me know 🙂

Very nice!

However, we note that the selection cursor in a new type of craft, leaves a flaw in selecting the item to be created.

For example:

Created "Enginer" but "Enginer" has learned recipes.

To select it, you will get the "picture" of the last recipe appears.

"Sixth" commented on the option to turn on / off the display of these items through a switch.

It would be interesting. This could "solve" the problem previously mentioned.

Obviously, this is a suggestion =)
ok fix the display issue with the menu recipes

https://www.dropbox.com/s/bdz0lexj9buxp7k/Crafting%20Menu%20Access%20Add-on.txt?dl=0

fixed the stats window popping up while selecting a craft type in the menu recipe add on:

https://www.dropbox.com/s/bdz0lexj9buxp7k/Crafting%20Menu%20Access%20Add-on.txt?dl=0

As for the buying multiples of the Alchemy book.. I just can't reproduce that one. It only ever lets me buy one
What I mean with the recipe buying is:

I can only buy one at a time, that is correct.

But it will not grey out in the shop, so I can still buy more, one at a time, but infinitely.

I learn the recipe just fine, but I can still buy the recipe item from the shop even after learning the recipe.

This was not the case a while back, or was it?

I remember that it became disabled once I bought one, regardless of the setup of 'Keep_Item' in the addon.

# (nor will the merchant let you because it checks if  the recipe is known)
This is from the recipe shop addon, so I guess it is indeed a bug.

It happens in the demo too for me.
I'm not sure what it's doing it. In the demo for me it greys out and I can never buy more then one
ok fix the display issue with the menu recipes

https://www.dropbox.com/s/bdz0lexj9buxp7k/Crafting%20Menu%20Access%20Add-on.txt?dl=0

fixed the stats window popping up while selecting a craft type in the menu recipe add on:

https://www.dropbox.com/s/bdz0lexj9buxp7k/Crafting%20Menu%20Access%20Add-on.txt?dl=0

As for the buying multiples of the Alchemy book.. I just can't reproduce that one. It only ever lets me buy one

You posted the same link twice.
oops 😉

https://www.dropbox.com/s/4m7xkhajz842li5/Crafting%20Actor%20Stats.txt?dl=0

I always update the file the links point to so they're always the same link as the ones in the main post.
I think I'm passing on something.
Probably should not be paying attention in some detail.

But why can not I buy the "Loaf of Bread Recipe" and the "Cestus Recipe"?
They're examples of NOT being able to buy an book when the recipe is known. You should be able to buy the Cestus Recipe if you haven't talked to the blacksmith. You shouldn't be able to ever buy the Loaf of Bread recipe because it's automatically learned at the start of a new game.
https://drive.google.com/file/d/0B3d2YApCS0RxZmZQMUMzMkxvOWc/edit?usp=sharing

See =)
cause sometimes.. I'm an idiot =P

I changed the recipe ID's a while back when I was testing out the sort command and I forgot to change them back.. so the note tag for the Cesctus Book should be changed to this:

<recipe_id: 3>It's set to 5.. which is the Battle Axe recipe and that one is known.

Sorry about that

Original thread: https://forums.rpgmakerweb.com/threads/crafting-script-v3-8-updated-2-26-2015.17560/