Can my skills cost items?

I know you can make skills that cost MP and even HP.

What about if my skills cost items (during battles and outside battle) in case I want to make a merchant or alchemist class in my game?
This is something you'd need to script.  Yanfly had a script to do this in VX Ace but as far as I'm aware no script has been made to make skills "cost" items in MV yet.  I'm confident such a script will be made soon, though.
This is something you'd need to script.  Yanfly had a script to do this in VX Ace but as far as I'm aware no script has been made to make skills "cost" items in MV yet.  I'm confident such a script will be made soon, though.
Thanks. I was watching Yanfly's videos making sure I wouldn't miss the part where he explains how to do this, but there's still no script. I'll keep designing the other parts of my game. Having a Priest doesn't feel right, I'd rather wait to design my Merchant/alchemist.
I have actually already written a script doing exactly that. 🙂

I have submitted it into the appropriate forum, but it seems it's taking a bit long for the topic to be checked and appear on the forum, since I do,t see it yet ?

Well, if the topic takes too long appear I can maybe message it to you or something...
r u sure? i thought we did have that ability...with yanflys stuff gonna dig

ok guess i was confused...maybe with lunatic mode...
r u sure? i thought we did have that ability...with yanflys stuff gonna dig
I haven't finished watching all his videos
Are you talking about having an ammo type where at skill used, it takes one ammo.
Are you talking about having an ammo type where at skill used, it takes one ammo.
Let's say you are an alchemist, and preparing "acid bomb" requires you to have 1 sulfuric rock and 2 particles of hydrocloric acid.

Once you cast it, these 3 items are removed from your inventory and you cast your skill.

Or you are a merchant and you prepare, "Ginseng pills" which require you to use 2 ginseng herbs. You cast the skill and 2 ginseng herbs are removed form your inventory

The items needed to cast your spells would be common items found after battles or by purchasing them at the stores.
I did my alchemist "craft" skills via a common event. Just have the event check for the required items before resolving.
Yanfly hasn't made it yet. Right now he's holding a poll were you vote what plugin he makes next. The item cost is one of the voting options.
I've moved this thread to JS Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
My topic in the MV plug-in section is visible now, so you should check it to see if it suits your needs. It was intended as an "ammunition" system rather than a "crafting" one, but it should do the job quite right if your skill just run a common event that gives the alchemy/crafting-produced item to the party.

Original thread: https://forums.rpgmakerweb.com/threads/can-my-skills-cost-items.48342/