Formula box skill woes

kaukusaki

Awesome Programmer Extraordinaire
Veteran
Joined
Jun 27, 2013
Messages
671
Reaction score
493
First Language
English
Primarily Uses
RMVXA
Im trying to figure out how to make a mp draining skill heal hp instead by using just the formula box. I'm probably over thinking it and after a week i can't get it working.
Am i overlooking something?
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,599
Reaction score
12,916
First Language
English
Primarily Uses
RMVXA

I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

kaukusaki

Awesome Programmer Extraordinaire
Veteran
Joined
Jun 27, 2013
Messages
671
Reaction score
493
First Language
English
Primarily Uses
RMVXA
@bgillisp oops! ≥﹏≤
I'm on mobile and it's hard to tell at times.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,230
Reaction score
6,769
First Language
German
Primarily Uses
RMMV
a is the skill user, b is the skill target.
and then just use mp and hp as the attributes.

Example:
Code:
r=4*a.atk-2*b.def; a.hp+=r; r
(this is untested and would have some quirks if the target has less than r MP and so on, but you can take it from there)
 

kaukusaki

Awesome Programmer Extraordinaire
Veteran
Joined
Jun 27, 2013
Messages
671
Reaction score
493
First Language
English
Primarily Uses
RMVXA
@Andar After some tweaking it works how i want. ♡(∩o∩)♡ Thanks!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

As for the Coronavirus? Well: "People that spend their life avoiding death are already dead (they're also rich, and I like to spend my life with their money.)"
- R. Sanchez, "Edge of Tomorty: Rick, Die, Repeat"
making pierogi and corrupting my game files wbu
Trying to regain my will to work on maps T_T
I miss working in rpgmaker but I can only do one thing at a time. Maybe after drawing lessons I can come back.
Ever have a day like... you play minesweeper and your very first click is always a mine?

Forum statistics

Threads
94,340
Messages
920,078
Members
124,100
Latest member
Vulgourso
Top