Item Combination System

Discussion in 'JS Plugin Releases (RMMV)' started by Jeremy Cannady, Nov 1, 2015.

    Tags:
  1. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    ItemCombination.js v1.0

    DownloadLink

    http://pastebin.com/aks2WGDd


    Jeremy Cannady
    Introduction
    Simple script to make an item combination system. Please follow the notetags exactly.
    Please PM if there are any questions, I made this for my current monster hunter rpg so
    if it clashes with another script let me know!


    Features
    Makes and Item Combination system.

    1.   NoteTags
    2.         <comboChance:0.95>      where 0.95 is 95%
    3.         <comboIngredient1:1,1>  where you require one item #1
    4.         <comboIngredient2:2,3>  where you require three of item #2
    5.         <comboFail:4>                   If you fail you make item #4
    6.        
    7.         Plugin Commands
    8.         no spaces and the exact format, must have comboChance, at least one ingredient and the combo fail or will crash
    9.         itemComboForget 1       where you forget the recipe to combine item #1 which is a recipe
    10.         itemComboLearn 5                where you learn the recipe to make item #5
    11.         itemComboChanceChange 7,0.5     where you change item# 7 chance to combine to 0.5 which is 50%
    12.         ItemComboMenuEnabled true       where true or false enables the menu option or not
    Screen Shot:

    [​IMG]
     

     

    Notetags


    [​IMG]



    How to Use
    Put the script, must be named ItemCombination.js and needs to be Java script and not text file. 

    Author's Notes

    Send a message if there is any questions or would like to know how to change the colors to what you want them to be instead of my default ones I have used. Thanks
     
    Last edited by a moderator: Nov 14, 2015
    #1
    Ushi, Lindar, LuLight and 3 others like this.
  2. Roguedeus

    Roguedeus Veteran Veteran

    Messages:
    469
    Likes Received:
    83
    First Language:
    English
    This looks like a really nice script.

    What are your terms of use? :)
     
    #2
  3. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    Any body can use anything I create for whatever purpose they want. No credit necessary. Cut, copy and paste it doesn't matter to me.
    Just message me if there is any problems or bugs. Also my script aren't that fancy because they are made for my needs first.
    If any customs changes anyone wants then just message.
     
    #3
  4. fm2107

    fm2107 Veteran Veteran

    Messages:
    77
    Likes Received:
    19
    First Language:
    english
    what is the plugin command/script call to enable this from an npc
     
    #4
  5. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    SceneManager.goto(Scene_CraftingMenu)

    that should activate it just put it in the script box
     
    Last edited by a moderator: Nov 3, 2015
    #5
  6. Roguedeus

    Roguedeus Veteran Veteran

    Messages:
    469
    Likes Received:
    83
    First Language:
    English
    I just tried it out and for the record it is impressive!

    There is one significant issue I am having. The Combine screen does not scale to larger resolutions. It seems locked at default.

    Another is that combinations that use more than single digit amounts overlap. combine_texterror.PNG

    ...

    If you are interested in feature requests that don't completely redefine the plugin I can offer some. Starting with the option of defining experience to improve changes automatically. Something like, each success has a chance of increasing the success rate by a set amount.

    Example:

    <auto_improve: 0.25, 0.01>This note tag might cause that items success to automatically raise by 1% when its successfully created 25% of the time.

    <auto_cap: 0.10>This note tag might cap such auto improvement to an additional 10%. So if the base is 35% it would cap at 45%. Requiring the normal improvement plugin command to improve further... etc...
     
    Last edited by a moderator: Nov 3, 2015
    #6
  7. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    I run at default so I had no idea lol. (how are you changing the default resolution? with a plugin? If so let me know.)
    I will check on that. I can improve the spacing between the required amounts.

    The success chance increase thing seems easy to me. I can mess around with it and get back to you. 
    I am at work so my work computer is so slow so I can't really do much at the moment.
     
    #7
  8. Roguedeus

    Roguedeus Veteran Veteran

    Messages:
    469
    Likes Received:
    83
    First Language:
    English
    Yes I am using Yanfly's Core to run at a around ~720p with multiples of 48, but I haven't settled on a specific resolution. ;)

    Another feature that I can think of, off the top of my head would be dismantling. Possibly as simple as running the combination in reverse, but having each ingredient use a defined chance of surviving.

    <dismantle: 0.50>Would make the item dismantle into its ingredients, each having a 50% chance of surviving.

    Dismantles can be learned with normal recipes, or separately.

    I am sure I can think of more if you like!
     
    Last edited by a moderator: Nov 3, 2015
    #8
  9. hemvp

    hemvp Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    I may just be foolish in not knowing how to do this, but is there a way to make this combination option a special skill for a Chemist in the party instead of just being in the normal party menu?
     
    #9
  10. hydro_sapien

    hydro_sapien Veteran Veteran

    Messages:
    51
    Likes Received:
    8
    First Language:
    English
    I don't have any scripting skills however, I have some great ideas to expand on this plugin if you like.

    Crafting Weapons and Armors.

    Having different Types of Crafts (Smithing, Woodworking, Alchemy, etc.) 

    Crafts could costs money (I'm sure people would want to implement NPCs that provide the service of crafting for you.)

    I really really really, appreciate this plugin my project is very Item heavy. Thank you.
     
    #10
  11. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    I am actively working on crafting weapons and armor.
    I hope someone doesn't beat me to it.
    It is crucial to my game as well. I will update you if I have any first drafts made.
     
    #11
  12. sarugaki339

    sarugaki339 Villager Member

    Messages:
    28
    Likes Received:
    3
    First Language:
    English
    I just started using this script specifically to craft weapons and armor and just realized it only makes items lol. So speaking for myself and I'd imagine others here, I would really like to see this script expanded to include craftable weapons and armors. Keep up the awesome work, it's very much appreciated ^^
     
    #12
  13. Jenza

    Jenza Veteran Veteran

    Messages:
    40
    Likes Received:
    7
    First Language:
    English
    This looks amazing! Is there anyway to make it as a recipe system? So  the player needs to find/learn the recipe before being able to make it?

    EDIT: didn't read it properly. Sorry! Amazing work!
     
    Last edited by a moderator: Nov 3, 2015
    #13
    Anime_Fusion likes this.
  14. Syx666

    Syx666 Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    I've got a Scene_CraftingMenu is not defined. How do I fix this? Thanks in advance.
     
    #14
  15. DustyCat Media

    DustyCat Media Indie Game Purrfector Veteran

    Messages:
    115
    Likes Received:
    71
    Location:
    Philippines
    First Language:
    English
    Kept trying this one and it still says "Scene_CraftingMenu is not defined".

    I'm calling this one through an event and have put this in the script box. And yes, i've turned this on in the plugin manager.

    Thank you. :)
     
    #15
  16. RequLz

    RequLz Villager Member

    Messages:
    13
    Likes Received:
    1
    First Language:
    English
    ^ Having the same problem as DustyCat D:
     
    #16
    LuLight likes this.
  17. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    #17
  18. Dalpio

    Dalpio Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    한국어
    [​IMG]

    i cant read by NPC

    and how add combine menu ?

    [ pluginmanager : ItemComboMenuEnabled true ] is not changed menu 
     
    #18
  19. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    248
    Location:
    Texas
    First Language:
    English
    The menu should be enabled in your game by default if you have at least one thing you can combine. If your note tags aren't set up correctly then bad times.

    If you have it disabled in the game then to access it you need to go to the script window and typ ein 
    SceneManager.goto(Scene_CraftingMenu)

    I think you posted a picture but it is not working over here.
     
    #19
  20. DustyCat Media

    DustyCat Media Indie Game Purrfector Veteran

    Messages:
    115
    Likes Received:
    71
    Location:
    Philippines
    First Language:
    English
    It finally worked! Thank you!!

    One suggestion is to have all the texts in that menu customizable :)

    Another suggestion is to have the "successful" and "failed" sounds customizable as well. :D

    But anyway, thanks for this plugin!

    [EDIT] When i press escape while in this menu, the game exits.

    [EDIT2] I replaced "goto" with "push" and now it works fine. :)
     
    Last edited by a moderator: Nov 4, 2015
    #20

Share This Page