Hello,
I'm trying (and failing) to get Sprite_Damage to display text instead of using damage.png as source.
Can someone help me with this?
Thanks in advance.
Damage popup as text instead of damage bitmap.
● ARCHIVED · READ-ONLY
-
-
You can check this plugin for inspiration:
http://sumrndm.site/battle-popup-customizer/ -
I already did but I am not so familiar with javascript hence the request :)
-
Anybody?
-
Are you asking because you are trying to write your own plugin? Or are you having trouble with an existing plugin?
When you tried the SRD Battle Popup Customizer plugin, what issues did you have? -
I'm using Tomoaky's Platform system. So the damage popup appears on the map. The system itself doesn't really change Sprite_Damage:
I was just looking for an easy way to modify the method for showing the popup.Codefunction Sprite_MapDamage() {
this.initialize.apply(this, arguments);
}
Sprite_MapDamage.prototype = Object.create(Sprite_Damage.prototype);
Sprite_MapDamage.prototype.constructor = Sprite_MapDamage;
// セットアップ
Sprite_MapDamage.prototype.setup = function(target) {
var result = target._actionResult;
if (result.missed || result.evaded) {
this.createMiss();
} else if (result.hpAffected) {
this.createDigits(0, result.hpDamage);
} else if (target.isAlive() && result.mpDamage !== 0) {
this.createDigits(2, result.mpDamage);
}
if (result.critical) {
this.setupCriticalEffect();
}
};
Maybe I should have asked this in Plugin Request... Sorry.