XickerskF

Villager
Member
Joined
Jun 30, 2022
Messages
5
Reaction score
8
First Language
English
Primarily Uses
RMMZ
Trying to replicate the damage formulas used in Persona 5


5f1c485e8867fbf5d062fe52d3a7288a8fc33c15.png

d5350734d54dce512eacb7f1de6be2e1af01a37a.png

Effectively Skill Power is how much base damage the skill does, Magic Stat is your M. Attack.

Base Power is the result of the above calculation and endurance is your Defense/M. Defense and obviously Armor Defense doesn't exist.

Top formula is the attack part.

The bottom formula is how much damage should be subtracted from the total.


I haven't gotten to the defense part because I can't even get the attack part to work.

70 + 70 x a.atk / 30

It only results in doing zero damage, no equipment is on the actor and all their stats are 1 so effectively the formula is

70 + 70 x 1 / 30 which according to google should result in 72.3333333333

I'm terrible at math so maybe it's off, or the formula isn't formatted correctly in MZ, any ideas?
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
765
Reaction score
1,157
First Language
German
Primarily Uses
RMMV
the operator used for multiplication, specifically in RPG Makers, is "*", not "x".

e.g.

70 + 70 * a.atk / 30
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,858
Reaction score
12,405
First Language
English
Primarily Uses
RMMZ
On a side issue, if you change the colour of the text from automatic to black it is hard for anyone using the dark theme to see what you've written. That's because it ends up as black on grey.

To show what I mean here is how it appears to me, with the automatic text in white and the black in, well, black.

1656530832006.png

It might be kinder to stick to automatic.
 

XickerskF

Villager
Member
Joined
Jun 30, 2022
Messages
5
Reaction score
8
First Language
English
Primarily Uses
RMMZ
the operator used for multiplication, specifically in RPG Makers, is "*", not "x".

e.g.

70 + 70 * a.atk / 30
You know, I knew that it was * but I guess it slipped my mind when converting all the symbols.

Thank you, that saved me a lot of headaches.

On a side issue, if you change the colour of the text from automatic to black it is hard for anyone using the dark theme to see what you've written. That's because it ends up as black on grey.

To show what I mean here is how it appears to me, with the automatic text in white and the black in, well, black.

View attachment 231176

It might be kinder to stick to automatic.
This was because it's an embedded image, sorry about that -- I didn't have time to write the entire thing directly.




Final notes: If anyone is reading this in the future this formula seems to work, and might save you some trouble.

70 + ((70 * a.atk) / 30) - Math.sqrt(b.def * 8)

70 is the base damage, replace a.atk & b.def with relevant damage types
 

Latest Threads

Latest Profile Posts

I finished Stray this morning :(
yo i made a post but it hasnt really gotten any answers so uhhhh
Finished switching to a new PC. Now I could potentially start working at projects or plugins again if I feel the motivation to do so.
If you don't read the news, you are uninformed. If you read the news, you are misinformed.
Custom slip rates and custom ailment durations for enemies really opens up the floodgates for status effect use. I can have Poison and Time Stop affect bosses without it breaking their balance! Finally, a healthy middle ground.

(Especially after I cooked up a thing that prevents you from re-applying deadly states more than once in specific occassions.)

Forum statistics

Threads
124,536
Messages
1,164,285
Members
163,366
Latest member
kurutami
Top