Have HP AND MP damage

Status
Not open for further replies.

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I want to have a skill which damages both HP and MP.

What I have tried so far is to set the skill to HP Damage and then have this damage formula

b.result.mp_damage = (10 +a.mat - b.mdf); 120 + a.mat * 2 - b.mdf

What seems to happen is that HP damage is done, but MP is added to the target. Interestingly, if it is reflected back on the user, it does become both HP and MP damaging.

Clearly my approach is not the correct one. Does anyone have any suggestions?

Thanks
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
try accessing MP directly:

b.mp -= (10 + a.mat - b.mdf); 120 + a.mat * 2 - b.mdf
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Andar That formula just gives me HP damage and doesn't do anything either way to MP.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
I'm not sure if it's conflicting with another script you're using, because I used that exact formula and it dealt MP damage, Kes. (the first one you posted)
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Trihan It's nice to know that my formula is correct, but if it is conflicting with something, then I shall have to drop the idea for that skill, because there's no way I'm going to be able to bug hunt my way to finding where the problem lies.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Can you archive your project and send it to me like you did last time and I'll take a look?
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Trihan Be prepared to be horrified when you see my script list.
But yes, I can do that.
Thank you.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Sorted it, check your PMs. :D
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Yay!!!
For anyone who has a similar problem -

The formula heals MP if the target has a higher MDF than the user has MAT. It needs a slight adjustment to prevent that happening
b.result.mp_damage = (10 + a.mat - b.mdf).abs; 120 + a.mat * 2 - b.mdf

[mod]Closing as solved.[/mod]
 

b_princess

Villager
Member
Joined
Dec 28, 2019
Messages
20
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hi everyone- so I'm having a similar problem. I want to design a powerful attack that the final boss would use which halves everyone's HP and MP.

I tried with the forumals above but I somehow the MP damage didn't work. I saw that someone said it might be because of incompatiblities so i even tried turning off all my plugins and that didn't work.

But then I did this:

I entered HP damage, formula: b.hp/2 and then for effects I put recover MP -50%

The only problem was it wont SHOW the MP damage numbers in battle.

But then when I turned my plug-ins back on, Yanfly's Battle Engine Core took care of that problem :)
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA

B_princess, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.



Plus this thread is for ACE, your solution is for MV.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top