im not trying to script it in a custom script but im trying to make use of the common events to make a consumable item generate another item.
How can I do it in game?
Srry, didn't realize it was XP question.
Depends on how specific you want to get with the items that it can generate. Like say you want to make items 1-5 randomly drop when you use the consumable. You could create a common event that starts with setting a variable. The variable sets a random number from 1-5. After that, you would have conditions when the variable is each of those numbers, and under each condition would be the corresponding item drops.
That's a fairy basic explanation, but I'm not sure how complex you need it to be.
can you give us a screenshot of the item? that needs to call the common event for that to happen - and you don't need to check if the item is in inventory if that item is calling the common event...
Having your common event inside of that condition is what's breaking it. When you use the item, it consumes the item before triggering the common event. So by the time it gets to the inventory check, the item is already gone and the event doesn't trigger.
There shouldn't be any need to check if it's in your inventory anyways, because if it wasn't, you wouldn't be able to use it in the first place.
that explains it.... how do you make a gachapon with many items work.
I'm assuming you're referring to the random item generator in this case? If so, try what I had outlined in my first reply. If you need something more specific please provide some detail on how exactly you would like it to work.
yeah I want to make gachapon only items for players to enjoy. since it will be in a micro transaction. mostly for different looking gear and decorations(usable decos with a beneficial effect similar to a chair item in mabinogi).nothing game breaking.
how do do this with a larger item pool? swap the numbers for tables.? making a 30 item gachapon is going to be rough.
If you want to be able to generate 30 different random items, the only way that comes to mind would be to have 30 conditions in your common event because you're going to need one for each number. I don't really think there's an easier way to do it with events.