Quintus

Veteran
Veteran
Joined
Nov 9, 2017
Messages
38
Reaction score
6
First Language
English
Primarily Uses
RMMV
So I'm trying to make a skill that attacks an enemy but also restores a set amount of MP to the user. I had a similar skill in VX Ace using a damage formula but I can't remember how I did it and I can't seem to recreate it. I've also lurked around some old thread's trying to make similar skills and it sounds like it should be possible with Yanfly's skill core but I haven't been able to get that to work either. I'd appreciate if I could get some help on this.
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,942
Reaction score
1,329
First Language
English
Primarily Uses
RMMV
Try using this: a.gainMp(10); a.atk * 4 - b.def * 2

Of course, replace the second portion with your attack formula.
 

Quintus

Veteran
Veteran
Joined
Nov 9, 2017
Messages
38
Reaction score
6
First Language
English
Primarily Uses
RMMV
Try using this: a.gainMp(10); a.atk * 4 - b.def * 2

Of course, replace the second portion with your attack formula.
That worked great, thanks!
 

Latest Threads

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,661
Members
149,913
Latest member
badalias
Top