Making items consume mana?

Is there a way I can make items use mana when used?
I use items in my game like abilities, for example, theres a shuriken type weapon which when used in battle, fires 3 shurikens dealing damage.

Not sure if this is possible with YEP, but I'm open to suggestions.
I Googled "RPG Maker MV items mp cost" and found this thread, which includes a plugin for it:
I Googled "RPG Maker MV items mp cost" and found this thread, which includes a plugin for it:
I did see this when i searched too but, Its not for RPG Maker MV sadly
Well my bad! That will teach me to read more carefully. In which case, no, I don't think so.

You could try going the other way around, turn the effects into skills and use Yanfly's Skill Cost Items so you're expending the items to power the skill...same end effect, but of course the interface may not be what you want.

And you can certainly make the items drain MP when they're used, I just don't see a way (without writing a new plugin) to set it as a prohibiting cost.
You can do it through the database. Get the item to run a common event that can be made to deduct mp and do anything else that you want. In the database, look at 'Items', and in the 'Effects' section, double click on a blank line to bring up the dialogue box. Select the 'Other' tab and you will see the option to choose a common event at the bottom.
You can do it through the database. Get the item to run a common event that can be made to deduct mp and do anything else that you want. In the database, look at 'Items', and in the 'Effects' section, double click on a blank line to bring up the dialogue box. Select the 'Other' tab and you will see the option to choose a common event at the bottom.
You can do it through the database. Get the item to run a common event that can be made to deduct mp and do anything else that you want. In the database, look at 'Items', and in the 'Effects' section, double click on a blank line to bring up the dialogue box. Select the 'Other' tab and you will see the option to choose a common event at the bottom.
Haven't tried it yet but sounds pretty flawless, tysm!
Haven't tried it yet but sounds pretty flawless, tysm!
Not quite...
You can do it through the database. Get the item to run a common event that can be made to deduct mp and do anything else that you want. In the database, look at 'Items', and in the 'Effects' section, double click on a blank line to bring up the dialogue box. Select the 'Other' tab and you will see the option to choose a common event at the bottom.
There are two problems with this, as I listed in my prior post.

1) The common event doesn't know which actor is using the item, so it doesn't know who to deduct MP from. You can finagle through this using an empty state, but it doesn't just happen from the event commands.

2) The common event happens after you use the item, so this doesn't function as a cost. You could use this when you have 1 MP, the event takes 15 away, and you end up with negative MP. And then you could use it again.
Not quite...

There are two problems with this, as I listed in my prior post.

1) The common event doesn't know which actor is using the item, so it doesn't know who to deduct MP from. You can finagle through this using an empty state, but it doesn't just happen from the event commands.

2) The common event happens after you use the item, so this doesn't function as a cost. You could use this when you have 1 MP, the event takes 15 away, and you end up with negative MP. And then you could use it again.
1) Solved pretty simply, I only have one actor anyway xd
2) This is an issue yeah, I came across this and is why i checked back here- any bright ideas?
Only the solution I offered the last time. Did you look into the plugin I mentioned?
The alternative, as far as I know, would be to commission a plugin for your purposes.

Original thread: https://forums.rpgmakerweb.com/threads/making-items-consume-mana.139804/