Force dmg motion when receiving mp damage?

coticka

Veteran
Veteran
Joined
May 30, 2015
Messages
68
Reaction score
8
First Language
English
Primarily Uses
RMMV
Perhaps there's a way to do this already? Though I haven't found it. But is there another plug-in out there that forces the SV charset to use the damaged motion frames when being inflicted with MP damage from an enemy?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
1,510
Reaction score
993
First Language
EN
Primarily Uses
RMMV
You could try a damage formula like this~
Code:
b.performDamage(); 50
I.e. "make the target do a damage motion, then return a value of 50 as the formula result". You can replace the 50 with your skill's formula.

If you want something more generally-applicable, you could try saving the following as a .js file (Save As > File Type: All Files, Filename: whateverYouLike.js) then import it like a plugin:
JavaScript:
(function(alias) {
	Window_BattleLog.prototype.displayMpDamage = function(target) {
		if (target.isAlive() && target.result().mpDamage > 0) {
			this.push('performDamage', target);
		}
		alias.apply(this, arguments);
	};
})(Window_BattleLog.prototype.displayMpDamage);
In theory (I haven't tested), this says "when displaying MP damage, if the target is alive and MP damage was done, make them do the damage motion; then do the usual stuff". :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Day 753: I think im just about ready to finish the planning stage of my game creation and actually start to make it :0
I usually don't enjoy survival games, but I absolutely love Conan Exiles.
Basically Everyone: Dont make a long game the first time. Me: I guess i'll make a REALLY long game in that case >:p
I've developed a habit of thanking cleaning ladies for their work.
Sorry Aerith... I will abandon your shoes... :guffaw:

Forum statistics

Threads
95,774
Messages
931,791
Members
126,175
Latest member
MuuuhFasa
Top