I'm working on crafting, and I've come to a stalling point, as I was trying to make a Dragon Age-style crafting system and can't figure out how. For those who haven't played, it's a modular system in which you have a huge list of raw materials, each with their own stats, which you can craft into known forms, creating a lot of variety without making the system too complex. Here, I'll give an example.
Carduus has the schematic for making a beanie, and has decided he wants to make one. The schematic says it needs 1 unit of cloth, and 1 propeller. In his inventory, Carduus has some shiny gold cloth that will give +2 to his bling, or some checkered red and white cloth that will give +2 to summoning ants. Likewise, he has a tiny propeller made out of balsa wood that gives +1 to pinewood derbying, and one made of shark teeth that gives +9000 in biting. Deciding he wants to be a biter with some bling, he takes the gold cloth and tooth propeller, and the end product is a gold shark tooth beanie with +2 bling and +9000 biting.
Now obviously I could make items for every possible item this system could make, but I'd much rather just make a list of materials and a list of schematics and have it just add the proper stats to the end product. Is there any way to do this, or should I be less ambitious here?
You'll need a crafting plugin, that is basically impossibe with pure eventing (as you said yourself). Such scripts have been written for Ace, but I don't know if someone already wrote one for MV.
I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.
The problem with that combination is that you have to start with a component-less beanie (unusable), add gold cloth (unusable), then add shark propeller (becomes usable). I could add some flag to the shark propeller to 'activate' it maybe, but what if I used components for more than one template?
Well, the aspects I was referring to were that base (raw, standard) components coming together via schematic item is covered by Item Synthesis, and the +9000 Biting is covered by Attachable Augments, so I'm looking at it as something where those two might be able to get you close to what you're looking for. Come to think of it, I could probably write an Item Synthesis/Tags extension to allow crafting of schematics from tagged items of a type; not just the specific items. That would get you even closer, but you'd still need to do something about the Attachable Augments-side of the equation. Let me think on it a bit.
Ohhh. You're saying the cloth would be both an augment and an item synthesis item? Does item synthesis work with tag categories? Like, tagging all cloth with CLOTH and using that in the synthesis?
Not currently, no. That's what I'm saying I may be able to bridge for you (where the Item Synthesis and Tags would be wed). It seems like a viable case to me that you might want to enable a crafting system to use multiple items to achieve the same effect (e.g. explosive materials for ammunition). I'm just trying to rationalize with myself that you wouldn't, pretty much always, want that difference to be reflected in the item (where the Attachable Augments comes in).
The only use case I could see is somebody who makes wolves drop wolf pelts and deer drop deer pelts, but doesn't care about that distinction and just calls it leather once it's crafted. Pretty unlikely, but not impossible.
Pretty much my thoughts precisely. I wasn't really looking to do something as big as a three-way (*smirk*) extension, but I'm not necessarily opposed if it fits the need; just trying to mull it over a bit and make sure I'm not jumping the gun.
Well, I'd certainly appreciate it (the plugin, not the three-way), as I'm still a JS n00b.
Hey, Chaos17, I swear no offense intended, but did you even read the posts in this thread or just auto-fire the response? Everything in this thread has been about those plugins...
Thank you for trying to help, but yeah, what Neko said. We're trying to do something new with Yanfly's stuff. Or he is, anyways, and I'm sitting here looking pretty.
I've done something similar in my random prefix/suffix plugin. I'm willing to assist if Neko runs into any problems.
Awesome, DreamX, thanks! I plan to do it in two phases. The first of which will be bridging Tags and Item Synth. After that I have a pretty good notion (reads: "talked to Yanny to get a preemptive leg up") how to get the pre-augmented items back out. If that second part ends up being more difficult than I have planned, I may tag you in the ring. 😉 Thanks again!
Yeah, I've been looking into your stuff too, DreamX, and will likely use it if somebody can get this working, so I can just get rid of the plain dagger altogether, and have everything be prefixed and suffixed.
Hey, DreamX, does your mentioned plugin make use of the random prefixes/suffixes via independent item? I assume it has to, but if not, you may actually want to take this one on after all.
I've been plotting out the Tags/IS-bridge, and what I'm concerned with is that a new layer of selection would need to be built to handle the various "options" for an ingredient slot. I'm not so sure that's something I will be tackling right now, and while I don't think you'll be able to bypass the issue (unless you see an opportunity I've missed), I think since your plugin seems to already be capable of the phase 2, you might be able to get it done for Carduus sooner than I could.
I'll keep looking at it, but at the moment, I don't see a better way than to hook the confirmation of a create, and build a new window for selection of the specific items. Given that ingredients lists can be n long, I don't know of a graceful way to do that at first look.
Carduus, for the record, I'm not saying I won't do this if you can't get it done; just that after getting into it, it looks like it's going to take a lot more than I originally anticipated from the phase-1-perspective.
I have a day job and knowing me, this project won't be ready until Thanksgiving. I have time.