How to make a skill do more damage than the enemy's original ATK power.

Lapzil_Spider

Villager
Member
Joined
Apr 14, 2020
Messages
21
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Now, I'm not new to RPG Maker entirely, but I am new to its Battle System (I never touched it, I would screw around with Map Creation and Dialogue), so I need some help on it.

Here's what the title means:
(This isn't exactly accurate, just an example):

Let's say the Player had 0 Defense, and the enemy had 25 attack.
The enemy attacks and does 25 damage. How would I make a skill with 50 ATK instead of the Enemy's 25 ATK?

I want an enemy's ATK power to be 25, but some of their skills have their own ATK than the enemy's original ATK power.

I assume this has something to do with the Formula, which I'm not good with at all.
 

Lunesis

Veteran
Veteran
Joined
Oct 4, 2015
Messages
180
Reaction score
125
First Language
English
Primarily Uses
RMMZ
Just put a.atk * 2 - b.def in the formula for the skill.
 
Last edited:

Lapzil_Spider

Villager
Member
Joined
Apr 14, 2020
Messages
21
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Just put a.atk * 2 - b.def in the formula for the skill.
Is that how it works?

I want a skill to have its own Specific ATK power and it cancels out the user's Atk power with its own.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,046
Reaction score
2,358
First Language
EN
Primarily Uses
RMMZ
  • a.atk will be replaced with the ATK value of the skill user.
  • b.def will be replaced with the DEF value of the target.
You can use other values, including fixed numbers like 50. You can also use other operations like add +, multiply *, etc. For more details, hover the cursor over the skill formula box to show its help tip.

Let's say your "normal" formula is this:
JavaScript:
a.atk * 4 - b.def * 2
To use a fixed value of 50 instead of the user's current ATK, simply replace a.atk with 50:
JavaScript:
50 * 4 - b.def * 2

If you want to design more complex formulae, you may find this thread helpful:
It's for RMMV, but I think RMMZ's damage formulas are handled identically.
 

Lapzil_Spider

Villager
Member
Joined
Apr 14, 2020
Messages
21
Reaction score
2
First Language
English
Primarily Uses
RMMZ
  • a.atk will be replaced with the ATK value of the skill user.
  • b.def will be replaced with the DEF value of the target.
You can use other values, including fixed numbers like 50. You can also use other operations like add +, multiply *, etc. For more details, hover the cursor over the skill formula box to show its help tip.

Let's say your "normal" formula is this:
JavaScript:
a.atk * 4 - b.def * 2
To use a fixed value of 50 instead of the user's current ATK, simply replace a.atk with 50:
JavaScript:
50 * 4 - b.def * 2

If you want to design more complex formulae, you may find this thread helpful:
It's for RMMV, but I think RMMZ's damage formulas are handled identically.
It worked, thanks.

Though I wanna ask this, what do the " * 4" and " * 2" do? What would happen if other numbers were put in.?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,971
First Language
German
Primarily Uses
RMMV
that is simple mathematics - multiplication by four and multiplication by two
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
3,162
Reaction score
1,868
First Language
English
Primarily Uses
RMMV
It's the same symbols you see on calculators. The only difference is that division uses / (which is often used when writing out math, but is typically not the symbol on calculators).
 

Latest Threads

Latest Profile Posts

It's definitely discouraging when streamers give a try-to-say-it-nicely (i.e. bad) review of your game demo. It's like jumping into a cold pool. Bad initally, but it gets better with time. And you are now more alert and see better.
Some screenshots of the pub and lodging with the beginnings of clutter taking shape
TTp8uCw.png

jtC202e.png

bSXgyVl.png

eRx9PUF.png
Backgrounds are not my strong suit... :kaodes:
DazI8jt.jpg

Just realized I forgot doing the clouds... woops
Went to get some stuff for February 10, the birthday of my favorite ink monster...
I have a little one-person party for Bendy every year, complete with the life-size plushie I made. And yes, I bake a birthday cake!

Forum statistics

Threads
118,498
Messages
1,116,411
Members
155,493
Latest member
maxboop
Top