Add TP when the normal attack kills and/or criticals

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,770
Reaction score
729
First Language
French
How can I edit the damage formula so that a normal attack gives extra TP whenever said attack results in a critical and/or a death of the target?

Bonus: same question with exp instead of TP?
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
84
Reaction score
36
First Language
French
Primarily Uses
RMMV
I would do that using Yanfly Damage Core plugin and insert a line in the if (critical) conditional block (see bellow).
Similar method can be used to check if target is dead following excution or you can use an Overkill plugin.

Sans titre 2.png
Hope this help.
 

Indinera

Indie Dev
Veteran
Joined
Mar 13, 2012
Messages
1,770
Reaction score
729
First Language
French
No way to do it without Yanfly's plugin?
 

TSR

The Northern Frog
Veteran
Joined
Nov 14, 2019
Messages
84
Reaction score
36
First Language
French
Primarily Uses
RMMV
I guess there is other plugins out there that could do the same, but I only use Yanfly plugins so its the only one I know.
But if you don't want to use plugins at all, I would add a function in object.js
I don't think you can check for critical in the damage formula cause the if (critical) check comes after intital damage value have been establish...
But then again, there may be some other clever way that I not aware of...
I'll let others give theirs thoughts about it.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Another week has gone by. Maybe you made changes to your project/s. Maybe you didn't. Nonetheless, THAT IS NO EXCUSE TO NOT BACK THEM UP O_O!
Told my five year old she couldn't have any more candy as it was nearly bed time. She looked at me and said "Don't you know people die with no food?"
Need Antidote for a cold. x,x
Just bought another dlc off of steam. I'm loving these "POP!" packs :)
Every once in awhile, somebody reminds me events don't normally pass through each other. What's next? Maps with borders? Weirdos. :LZSwink:

Forum statistics

Threads
93,438
Messages
912,385
Members
122,957
Latest member
ShellShaded
Top