Combining Items not Crafting!

 




hey there,
do you have an idea for this problem:


 


I´ve done an system for an flashlight that has batteries for the use.
But my problem is that i want to combine the batteries as an item instead of "using" it in the item slot.
I want to combine flashlight + batteries = full flashlight At the moment you have to use the batteries to fill the energy to 100%.
you cannot "use" two items at once, but you can do that with eventing - checking which items exists and asking the player if he wants to combine them, then remove the part items and add the result item.


How you call the event is the usual option - some people use plugins to replace the event (crafting plugin), some people call the event from menu (menu plugin needed), some make it a map event (workbench event), some make it a skill event (use skill from menu to call) or assign it to an item (use item).


That are the options you have - they might be named differently (you don't need to name it crafting to combine flashlight and batteries with a crafting script), but no other options exist.
I'd suggest making three Items: Empty Torch, Batteries and Charged Torch.  When the Torch is charged, remove Empty Torch and Batteries and replace with Charged Torch. Once you've detected that the batteries are flat, replace Charged Torch with Empty Torch. When you've obtained fresh Batteries (bought from a shop, found under a bush, taken from a tin on the mantelpiece..?), use them to charge the Empty Torch and start again..?


Is that what you were looking for..?
ty both

Original thread: https://forums.rpgmakerweb.com/threads/combining-items-not-crafting.65294/