MP convert weapon

I tried Yanfly's MPconvert script and it isn't working for me. (https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/convert-damage/)
Any ideas why, or any other scripts i could use?

I want to have a weapon that 'absorbs' MP from an enemy. Ideally I'd like to set the value of the MP absorbed to an integer (I want a weapon that gives 1MP per hit to the player), but Yanfly's script converts a %age (which is OK too, if it worked).

I have no idea why Yanfly's doesn't work as I've installed it correctly and have used various other scripts in my game which work fine.

It's annoying that you can set spells/abilities that absorb MP but not being able to apply this to weapons. If anyone can suggest something, that'd be great.

G
This one? https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/convert-damage/

I haven't tried it, but u said u can absorb MP for skill? By using this script?
Or you mean something else since it's not working entirely?
@gsuk We ask that people give a link to the web page where you got the script so that people don't have to hunt for it. Please edit your post to include it.
Thanks
This one? https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/convert-damage/

I haven't tried it, but u said u can absorb MP for skill? By using this script?
Or you mean something else since it's not working entirely?

Hi. Yes, it's that script. I don't need it for a skill, rather for a weapon. When it hits, I want (ideally) to recover 1MP per hit. I think this script only allows a %age of damage to be absorbed rather than an integer, but that's ok.

I have used the notetag <convert mp physical: +4%> on the weapon I want to absorb MP, but it isn't absorbing any. I've changed the x% to a higher number to ensure the value isn't <0 but still no luck.

Was interested if I'm doing something clearly wrong, or if there are other similar scripts I can use.

thanks
Hi. Yes, it's that script. I don't need it for a skill, rather for a weapon
And by weapon, it will affect all skills, or just attack? Sorry for asking more clarification
And by weapon, it will affect all skills, or just attack? Sorry for asking more clarification

I don't mind if it affects the skills from that weapon.
I don't mind if it affects the skills from that weapon.
You're going out off track of my question. If it just attack, we can just use a script that will change default atk id when an actor equip the weapon, since technically attack is also a skill.
You're going out off track of my question. If it just attack, we can just use a script that will change default atk id when an actor equip the weapon, since technically attack is also a skill.

Ah. Interesting. So how can I change the default attack for this one weapon?
Yanfly has a weapon attack replace script?
Yanfly has a weapon attack replace script?

Cool. Do you have a link to that?
https://yanflychannel.wordpress.com/

under gameplay scripts for vxa

Thanks! That looks like it will work. However, when I attack, it says on screen +1MP but my char gets no MP from it. Any idea why? Also, in the Terms section of the database I’ve set MP to MND, yet it still displays MP on screen instead of MND.
Did you set the skill to mp absorb?
Actually there is this one that may work better.
http://rmrk.net/index.php?topic=46809.0
If you set a skill to mp absorb then it will take MP and add it to your character, but it will not do any hp damage with this script. Either one or the other. But if you needed hp damage as well then there is a follow up skill script that you can use for that. yanfly, under gameplay scripts.

As for your MP to MND, that must be in your battle script or another script helping with battle popups.
Here's what I put in to the new skill. (no, I didn't set the Skill to MP absorb, because I want it to do dmg as normal)

Recover MP 1, I assume, should give the player 1 MP per hit, no?

You're probably right about the MP/MND thing - I can look into that separately. At least I know it's not related to the problem.
Ok so you want to do normal damage and then add 1 to the mp for the actor.
I think yanfly's - follow up skill script is your answer.
Make a new skill that just adds 1 mp to the actor (mp drain) and call it from the weapon.
I think if you add the following to the start of your damage formula, it should work:
Code:
a.mp += 1;

I'm on my mobile so I can't test.

The way you did it earlier will give the enemy 1MP, I believe.
Thank you everyone for your help - really appreciate it.

It works now 😀

Topic can be closed.
@gsuk when a topic is solved please Report your opening post and ask for it to be closed . Mods might not see a post but they will see a Report.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/mp-convert-weapon.93518/