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,853
Reaction score
12,388
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 Posts

Latest Profile Posts

Coin Locker title screen:
Still in progress...

Screenshot_134.png
the girls.png
So, these are all the girls of the party =3 (beside the protagonist if you play as a female.)
Now, I just have one more character sheet of the guys left and I'm done with their presentations =3
Can you recognize where this area is from? :kaocry:
Mq9QM3h.png
For those with up to 9 elements of magic; how do you structure your database. By element? Or by what is offensive vs supportive spells?
would anyone here be interested in rough concept art for the main protagonist of my game that might get changed later? :kaoswt2:

Forum statistics

Threads
124,442
Messages
1,163,677
Members
163,256
Latest member
onbetltd
Top