MP convert weapon

Status
Not open for further replies.

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@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
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
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
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
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.
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,675
Reaction score
566
First Language
English
Primarily Uses
RMVXA
Yanfly has a weapon attack replace script?
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,675
Reaction score
566
First Language
English
Primarily Uses
RMVXA
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.
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
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.
 

Attachments

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,675
Reaction score
566
First Language
English
Primarily Uses
RMVXA
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.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
682
Reaction score
446
First Language
English
Primarily Uses
RMVXA
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.
 

gsuk

Veteran
Veteran
Joined
Jun 24, 2013
Messages
140
Reaction score
10
First Language
English
Primarily Uses
RMVXA
Thank you everyone for your help - really appreciate it.

It works now :D

Topic can be closed.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@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.
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top