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

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Venka, Aug 30, 2013.

  1. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    Crafting Script v3.8
    by Venka, based off GubiD's VX Cooking Script​
     ​
    Description:
    This is a script will allow you to have a crafting system in your games. It has a crafting timer bar so you must activate it at the right time to successfully make an item. Crafting results vary depending on when you craft your item. You can set up a premature crafted item, for example you can craft some dough instead of bread if you activate too soon, or a burned product if you allow it to go for too long. You can use more then one craft. The demo has Cooking, Smithing, and Alchemy crafts (but you can make your own). Each craft has it's own exp and recipes.
     
    Customization:
    - You can customize the colors of the level up gauge and the cooking gauge colors.
    - Set of font settings for various parts of the crafting scene.

    - You can choose to use line separators to break up the information displayed.

    - Set sounds for failure, success, opening the scene.. etc
    - Set the sounds that play when crafting as well

    - Each crafting type can use it's own music and background image.
    - Set the pop up message for after crafting.
    - Set the exp requirements for each crafting skill. (For example: Alchemy might take more to level up then Cooking). You can now also turn the exp off and do away with the levels if you wish.
    - You can set craft Mastery text that will show in the top of the Scene. (For example after maxing out Cooking, you could be called a "Top Chef")
    - Allows a variance to craft times (sometimes it might take a little longer to make a potion)
    - You have the option of allowing lower level recipes to craft at a faster rate.

    - You can also change the way the crafting gauge works. You can turn it off and always have a successfully crafted item, or turn it on and either have a progress bar that will fill up as you finish crafting your item or set it to an active bar that requires input from the player to make a good item.

    - Added the ability to craft stacks of items since this has been requested a few times and I've made custom scripts each time.. figured I'd just make it a feature you can turn on/off.

    What's new?

    Fixed a minor equipment counting bug and added the option of setting the claim time by craft type.

    The spoiler tag has the change log notes.

    #===============================================================================# - Change Log -#------------------------------------------------------------------------------# 12/15/2014 - Fixed BGM's so the play through the craft scene if no new BGM#              was set.# 10/27/2014 - Fixed equipment count so it counts if an actor is wearing more#              then one piece of the same item - Like two of the same Rings.#            - You can set claim/buffer time by craft type now.# 09/15/2014 - Changes to make it a bit more friendly for the new bigger screen#              size RGSS301.dll. I just stretched the background images to#              make the scale to any resolution and made the windows scale more#              evenly in the higher resolutions.# 09/08/2014 - Fixed the change_level script call to award the correct amount#              of exp.# 09/04/2014 - You wouldn't auto learn recipes when using the script call to#              change levels. This has been fixed.#            - Added a new script call to set the craft to a specific level.#            - Crafting background images will now check the Titles1 Folder#              for images first and if it doesn't find one in that folder then#              it'll look for the image in the Pictures folder.# 09/01/2014 - Made the code more efficient for the Menu Add on.#            - No changes were made to the customize section so no need to#              replace that section if you are upgrading.# 08/17/2014 - Made it so you can use this script without using craft exp and#              levels. The pop up window will shrink as well if no exp is#              earned.#            - Put in fail safes for if an item is listed as required, but set#              to zero (so you won't get the divide by 0 error).# 08/01/2014 - Made slight changes to the way the crafting result info was#              stored for the actor stats add-on. Also small changes to#              the crafting stack number in the Details window.# 07/24/2014 - Added a font height method to Window_Base for general purpose#              use.# 07/21/2014 - Gave some attention to the result window. It will now scale in#              size and show learned recipes when you level up a craft.#            - Added display names to recipes. So a recipe could be called#              "Super Awesome Recipe" instead of whatever the item is it#              creates.# 07/05/2014 - Incorporated the Tools Add-on into the main script.#            - When counting items already owned (at the top of the recipe info#              window, not the ingredients themself), it'll count equipped items#            - Allows crafting of stacks of ingredients as this is a common#              request. You can set if you want to allow the player to craft#              stacks.#            - Added in Opacity settings for all the windows in the scene.#            - Added more text control settings#            - Changed the text color of the required level in the recipe#              detail window if the current level is insufficient.#            - Fixed potential  spacing issues with the text in the Result Window# 06/28/2014 - fixed an enable bug introduced in the previous update.# 06/13/2014 - Allow sorting of the recipe list by level, alphabetically, or#              order created.#            - Small fixes here and there for the new Shop Craft & Decompile#              add-on script.#            - Added in :shop_fee for set up with the Shop Craft & Decompile#              add-on script. This option can be omitted in the Recipe setup#              if you have no intentions of using that add-on.#            - The recipe list window was only returning the check of the last#              item in the list. So if you had that ingredient, it would allow#              you to try and craft the recipe. You still couldn't craft it#              without all the items, but it didn't gray out like it should.#            - Move the Customize and Instructions section to it's own entry#              in the script editor so its easier to update the script without#              having to move settings back in from older versions.#            - Allows you set set what time of crafting gauge you want. There#              are now 3 options. The standard activated gauge where the action#              key needs to be pressed at a certain time. You can now make the#              gauge a progress bar that just shows when you'll finish crafting.#              Or you can just do away with the bar and instantly craft the#              item.# 05/28/2014 - Updated the script to auto fail the craft if the max craft time#              is reached before the action key is pressed.#            - Fixed the map's BGM to save instead of resetting it.# 05/22/2014 - Fixed some bugs in the auto learning feature (wasn't auto#              auto learning on craft level changes).# 03/09/2014 - Allows for the automatic learning of recipes when the craft#              levels up (you can choose to use this option or not)#            - Re-formated the way the craft type information is input. More#              and more information was being stored here and the old way was#              getting hard to follow.#            - Made the script compatible with modern algebra's Icon Hues.#            - Added a script call for conditional branches# 02/20/2014 - Allows active crafting sounds (like a hammer while smithing)#              The sounds can be a SE or a BGS# 01/31/2014 - Allows a failure item if crafting before the set time#            - Allows you to use gold in crafting recipes#            - Allows you to set background pictures/music for each craft type#            - Option for using line separators#            - Recipe List window will gray out recipes if requirements for#              crafting are not met.#            - Fixed compatibility issue with LoneWolf's trash symbol fix#            - Fixed some typos and misspelled words# 12/13/2013 - Made inputting item info easier for the user.# 10/15/2013 - Fix a bug failed item bug introduced in previous patch.#              Fixed a max level bug (could still get exp after max level)#              Allows you to give custom crafter mastery titles.# 10/11/2013 - Cleaned up some code.#              Added a random craft time setting to allow for some variance#              in craft times. Also added the ability to speed up the craft#              time in relation to how easy it is for you to make.#              Example: a level 1 recipe should be fast for a level 30 crafter.#  9/30/2012 - Upgraded to version 2.0. Allows use of items, weapons, armor.#              And you can have multiple crafting skills each with their own#              Levels, Recipes, and Exp.#  8/23/2013 - Initial port from VX to VXAce##===============================================================================
    Screenshots:

    Finally got some updated screen shots loaded.

    craft01.png craft02.png

    craft03.png

    Some of the Add-Ons:

    ShopCrafter.png ShopDecon.png

    ActorStats.png difficulty.png
    Demo:
    Dropbox: Crafting Script v3.8 - https://www.dropbox.com/s/ip3s83koj7qxwo8/Crafting%20Script.exe?dl=0

    Mediafire download (and zip file) - http://www.mediafire.com/download/sh9o0xvqwz1s6ob/Crafting+Script+-+v3.8.rar

    WARNING:
    If you are updating to v2.3 from a previous version, you will need to start a new game.

    Also the script uses items I added to the database in the demo to demonstrate how the script works. So plugging the script into a completely new project will give errors.
     
    Credits:
    Mack for some of the tiles used in the demo

    Ying for his wonderful icons used for the fishing stuff
    Venka for the updated script.
    GubiD for the original script (permission granted to post).

    Sixth has a edited version of this script to use with Vlue's Weapon/Armor Randomization Script. You can find the add on here.

    Thanks:
    posters in this thread of feedback and suggestions

    ShadowFox for testing out the scripts before 2.0 release
     
    Usage:
    Free to use for whatever purpose you see fit ;)
    Yes this means you can use it commercially.

    Add-ons:

    Difficulty Settings - NEW!!

    This add on lets you set up difficulty ranks for recipes. You can craft recipes above your current crafting level, but with a chance of failing. You can set the level ranges/tiers and set their fail rate as well as the color of the recipes name in the list window.

    Menu access add-on - Updated 09/01/2014

    This add on allows you to view all your recipes from the main menu. You can not craft from the menu.

    The update to this script was to allow large number of crafting types to be displayed without making the text too hard to read.

    Actor Specific Recipes - Updated 07/21/2014

    This add on allows actors or classes to learn recipes apart from the party recipes. Recipes are learned as you level up. Use note tags to set up how each recipe is learned - via crafting level, or class level. You can also set if the actor forgets the recipe when the loose levels.

    The last option is how the recipes will show in the list. You can require the actor to be the leader, in the active party, or just a party member (can be in the reserve).

    Shop Recipes - Updated 07/07/2014

    Allows you to buy recipes from a shop npc. You won't be able to buy the recipe or recipe books if the recipes are already known. This will prevent the player from wasting money.

    NPC Crafters/Decompilers - Updated 10/14/2014

    This add on will allow shop keepers that can craft items for you even if you do not know the recipe. They have the option of charging you more supplies and a fee should you hire them. They can also break down items for you in exchange for crafting components.. for a price :)

    Tools Add-on - Outdated as of Crafting v3.0 (it was incorporated into the main script)

    This add on will let you list a tool in the required items. Items with <tool> in their note tag box will not be consumed when crafted. Tools can be an item or a weapon.. or an armor if for some reason you can think of armor being a tool... :)

    Actor Stats - Updated 09/01/2014

    Allows you to preview stat changes for an item before crafting it. You can craft the item from the preview window for the actor selected. This add on has lots of customizable features and is compatible with the other crafting script add ons and Yanfly's Equipment Engine (extra equipment slots).

    Claim Time Addon by Sixth- NEW!!

    Gives you more control over the claim window when using the active crafting option. You can even have equipment that lets you get bigger windows of opportunity.
    For more in depth explanation of how to set up new crafts and recipes, check out this post.

    Known Issues:

    None I know about.
     
    Last edited by a moderator: Feb 27, 2015
    #1
  2. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,573
    Likes Received:
    2,921
    Location:
    Philippines
    First Language:
    Tagalog
    nice... gotta take a look

    EDIT: found a bug, I can still craft even if I don't have enough items...
     
    Last edited by a moderator: Sep 1, 2013
    #2
  3. vindaca

    vindaca CEO of Tales of the Valiant Veteran

    Messages:
    534
    Likes Received:
    75
    Location:
    California U.S.A.
    First Language:
    English
    Good job. You should change your post title to match your script title though.
     
    #3
  4. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    Can't believe I didn't catch that bug.  Thanks a ton =)
     
    #4
    Engr. Adiktuzmiko likes this.
  5. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,573
    Likes Received:
    2,921
    Location:
    Philippines
    First Language:
    Tagalog
    It's a good thing that I tried to actually press the ok button when I didn't have enough items... XD
     
    #5
  6. Jomarcenter

    Jomarcenter jomarcenter-MJM Veteran

    Messages:
    1,218
    Likes Received:
    149
    Location:
    philippines
    First Language:
    ENGLISH
    Primarily Uses:
    RMMV
    can I use it in a commercial project?
     
    #6
  7. gvduck10

    gvduck10 Quacker Jack Veteran

    Messages:
    267
    Likes Received:
    88
    First Language:
    English
    Primarily Uses:
    N/A
    It'd be great if you could embed a video demo  into your original post and maybe some instructions for setting it up in a game. I assume this could be used for equipment as well as items.
     
    #7
  8. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    Yes, you can use it commercially.

    To gvduck10: it would acctually take a little bit of modding to use it for weapons or armor, maybe I'll add that in when I get a chance.
     
    #8
  9. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,573
    Likes Received:
    2,921
    Location:
    Philippines
    First Language:
    Tagalog
    is the bug I posted fixed already?

    EDIT: saw the edit...
     
    Last edited by a moderator: Sep 6, 2013
    #9
  10. lottesong

    lottesong Warper Member

    Messages:
    3
    Likes Received:
    1
    Location:
    Germany
    First Language:
    Chinese
    This script is very nice~~ thank you! (^ ^)
    and how can I put icons of ingredient into the cookbook ?
    sorry for my poor english 
     
     
    #10
  11. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    your English is fine ;)

    the icons should show up by their self.

    It calls the item from the database and use's that item's info and icon
     
    #11
  12. unlock3d

    unlock3d Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    French
    Hello, is there a way to make it so that when you "cook" something, its automatically used up?

    Like, if you cook a "loaf of bread", its instantly used and its effect apply? If cooking a loaf of bread gives 100hp, then when you cook it, everyone gains back 100Hp?
     
    #12
  13. unlock3d

    unlock3d Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    French
    Please? :(
     
    #13
  14. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    doing a overhaul on the script right now. I'll try to add that feature in for you.

    I should probably have it done this evening.

    edit: sorry still working out some bugs and frame rate issues. might be ready tomorrow evening.
     
    Last edited by a moderator: Oct 3, 2013
    #14
  15. unlock3d

    unlock3d Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    French
    I'll be waiting, nice :)
     
    #15
  16. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    finally finished the overhaul on the script. The new version is posted with new screen shots.

    You can have multiple crafts now and use more then just items (items, weapons, and armor can be crafted or used as an ingredient).

    Lots of small visual changes: Redid the pop up window, lots of styled fonts that you can set to suit your needs.

    Updated the exp customizing section so it doesn't take a ton of entries. You just put in a couple of numbers (like on the Class Tab in the Database) and this will set up how much exp is needed for every level. You can set a max level as well (doesn't support levels over 99).

    I'll start working on trying to make items consumable for you now unlock3d. I must admit I'm hitting walls on this one, but I have a few more ways I want to try before admitting defeat.
     
    #16
  17. leedragoon

    leedragoon Villager Member

    Messages:
    28
    Likes Received:
    1
    First Language:
    English
    Wow this is really good, I am contemplating dropping my event driven crafting system for this one.
     
    #17
  18. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    thank you =)
     
    #18
  19. pinkapinkie

    pinkapinkie Veteran Veteran

    Messages:
    69
    Likes Received:
    6
    First Language:
    Italian
    Is it possible to disable the crafting bar so it won't show up in the crafting scene? And of course, make it so that you'll always get a success?

    I was also wondering wheter it is possible to set it up so that each time a job levels up, you will automatically see all the recipes of that level.

    For example, at level 1 of smithing, you see all the level 1 recipes automatically, then level 2, all level 2 recipes and so on.
     
    #19
  20. Venka

    Venka Veteran Veteran

    Messages:
    945
    Likes Received:
    365
    Location:
    United States
    First Language:
    English
    Last edited by a moderator: Oct 8, 2013
    #20
    tiagoms likes this.

Share This Page