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

Well, there's a default crafting time setting in the customize script (Default_Craft_Time = 300). If you want say all smithing recipes to use the same craft time, there's not a setting for that, but you could make all your recipes have their own time.

I'll see about adding in a default craft type timer while I'm making changes, it should only be a couple of lines of code
I don't mean to change the time to craft an item, instead, I wanna change the time when the green bar lasts. Sorry I didn't say it clear enough. During the crafting process, there are 3 period of time: 

time1: craft

time2: craft bar turns green and it lasts very shortly

time3: craft bar turns orange again if you don't push button 'z' quickly enough, and during this time, the craft fails

What I wanna change is the time2, which is something like a global value. I wanna give time2 different values for each type of item if possible.
Sure I can do that 😉 I'll probably have it done by tomorrow.
If you mean the time the gauge stays green, I already made an addon for it.


You can find it here:


http://forums.rpgmakerweb.com/index.php?/topic/17560-crafting-script-v36-updated-92214/?p=314478


Ohh and while I am here, I noticed something which makes a displayed info inaccurate.


This is the "Owned" number.


Your method won't count duplicated equipment, because it will add +1 to the counter and end the method immediately when it finds one matching equip, and goes to the next actor. If there are multiple equipment equipped with the same ID, those will be left out from the "Owned" display counter.


Breaking down the actors further to each equip solves this little issue.


I am working on an encyclopedia which displays all available items, equips, skills, states, etc. When I made the "Owned" text for it, I first made it like you, and then I noticed this issue.


Just wanted to let you know. Nobody likes inaccurate info, right? 😀
I had forgotten about your add on ;_;

Sixth's add on will give you tons of control over the claim timer and ways to change it 🙂 I updated the craft script so you can set a claim time in the craft types if you wish and fixed the equipment counting issue 🙂
If you mean the time the gauge stays green, I already made an addon for it.

You can find it here:

http://forums.rpgmakerweb.com/index.php?/topic/17560-crafting-script-v36-updated-92214/?p=314478

Ohh and while I am here, I noticed something which makes a displayed info inaccurate.

This is the "Owned" number.

Your method won't count duplicated equipment, because it will add +1 to the counter and end the method immediately when it finds one matching equip, and goes to the next actor. If there are multiple equipment equipped with the same ID, those will be left out from the "Owned" display counter.

Breaking down the actors further to each equip solves this little issue.

I am working on an encyclopedia which displays all available items, equips, skills, states, etc. When I made the "Owned" text for it, I first made it like you, and then I noticed this issue.

Just wanted to let you know. Nobody likes inaccurate info, right? 😀
Thank you! Your script helps me a lot.

But sometimes, I found, setting a certain item with a short time to react is too much, for players may have no time to notice when an item is crafted. If possible, can I play a sound or even an animation when an item is crafted, instead of merely turning the bar green?
try this out 🙂

Spoiler
Code:
#===============================================================================# Crafting Script Play Active Sound                         updated: 11/15/2014#===============================================================================module Venka::Crafting  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  # - Claim Time Sound -  #----------------------------------------------------------------------------  # The file should be one found in the SE folder. Volume is 1 - 100  # Pitch can be 50 - 200  # Use this format: [ "FileName", Volume, Pitch ]  # This is the sound that will play when the craft bar changes colors and it's   # time to claim your crafting reward.  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  Claim_Sound = ["Item3", 100, 100]end#==============================================================================# ■ Crafting_Details_Window#==============================================================================class Crafting_Details_Window < Window_Command;         include Venka::Crafting  #----------------------------------------------------------------------------  # ● upgraded method: initialize  #----------------------------------------------------------------------------  alias :active_play_timer_sound_ini :initialize  def initialize    active_play_timer_sound_ini    @sound = false  end  #----------------------------------------------------------------------------  # ○ alias method: activate_craft  #----------------------------------------------------------------------------  alias :active_play_timer_sound_craft :activate_craft  def activate_craft    active_play_timer_sound_craft    if @claim_time + @buffer >= @elapsed && @elapsed >= @claim_time - @buffer &&          !@sound      begin        RPG::BGS.new(*Venka::Crafting::Claim_Sound).play      rescue        RPG::SE.new(*Venka::Crafting::Claim_Sound).play      end      @sound = true    end  endend
Is there a way to get more than one item from deconstruction? I've put in two <decon item: x, y> tags but it only takes the first one and won't show the second one.


In the demo the Full Potion has two in the notes so I thought that would do it, but it doesn't show up.
good catch and yeah I just checked the demo before seeing your edit and saw the same thing. It was intended so you could have multiple items from deconstructing them. It's getting a bit late here so I'll try to track down the problem tomorrow 🙂
Ok it's fixed now and all the links in the first post have been updated 🙂

Here's a link to the decomp script for convenience

https://www.dropbox.com/s/5vic3mihvb4i06h/Crafting%20Shop%20Craft%20%26%20Decompile.txt?dl=0
Works great, thanks!
Hi Venka! I am trying to call the crafting scene through Scene_Crafting, but it's giving me this error.:

9WnlCti.png


Is it because I am not specifying which crafting scene I want?

The reason I am calling it like this, it's because I am creating a tutorial scene, and it only works that way...

I can't rely on craft(1) for example...
You need to call it with a prepare command too, like this:

SceneManager.call(Scene_Crafting) SceneManager.scene.prepare(craft_type)Replace 'craft_type' with the craft type ID you want.You will need to make a new craft type for tutorial purposes only, and than you can call that one for the tutorial.
Just like sixth said, I'd probably just make a craft for the tutorial and you can throw whatever example in it and then forget the recipes after the tutorial is done (unless they're ones you plan on keeping).
Sorry, I forgot to mention it's a scene tutorial! From this script here.:

http://forums.rpgmakerweb.com/index.php?/topic/28479-scene-tutorial-vx-ace/

But Sixth also helped me around there too, now it's all working! 
Just got the updates, went from 2.7 to 3.6, heh. Loving it! Lots of great tweaks, though I have one quick question. Would it be possible to set the crafting scene to simply utilize whatever the previously playing BGM is? I don't have a specific BGM in mind to use for crafting, but I'd much rather there not be silence while it's going on.
Oops, I so rarely play with sounds on, I thought it did this. I'll get a fix in today 🙂

PS any feedback on sounds for any of my scripts is always welcome for this reason
Heh, I know that feel. I'm pretty sure the older version utilized the previously-playing BGM, but the new one doesn't. It was definitely noticeable when I fired it up after updating.

Other than that, though, huge thumbs up on the improvements!
Ok try this one for the main script

https://www.dropbox.com/s/8qty1t9t61hrvo5/Crafting%20Script.txt?dl=0

if that's how you want it I'll update the main post 🙂
Hrmm, it doesn't seem to want to load for me. Dunno if it's a bad link or just my network being dumb. Any chance of a direct paste here?
just for saying people~ I also work on a adaptation for use Venka crafting script into battle : 3

because I want it

unless venka don't want xD

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