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
179
Reaction score
123
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,043
Reaction score
2,355
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,751
Reaction score
8,964
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,152
Reaction score
1,863
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

Ugh, can't decide what to make next!
The Dystopia
ikW0BYF.png
Recently got RPG Maker MZ. A bit slower with my current PC but I will be getting a new one soon.
evening progress; pretty happy where this is at so i'll take the rest of the night to myself =w=
5NJGyKY.png
It would seem learning JS is not a know it all for making plugins. While it has enabled me to understand what I'm looking at, I still have to find the relevant information in the core scripts. This is much harder than learning JS IMO.

Forum statistics

Threads
118,403
Messages
1,115,673
Members
155,343
Latest member
sograyish
Top