Yanfly Lunatic's damage display problem

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
287
Reaction score
89
First Language
French
Hey ! 


I have a trouble with making a pretty simple poison effect. In my game, I have an assassin who is able to equip poison. The equipped poison grant a passive state to the assassin, and this passive state do something in battle.


My problem is with one of these poison. The goal is to inflict 20% additionnal damages for each physical attack.


This is the code in the state notetag : 

<Custom Establish Effect>


// Check if the action deals HP healing and the target is alive.


if (this.isHpEffect() && target.result().hpDamage > 0 && target.isAlive() && this.isPhysical()) {


// Calculate 20% of the amount healed.


var dmg = -Math.abs(Math.ceil(target.result().hpDamage * 0.20));


// Inflics the damages


target.gainHp(dmg);


// Start the damage popup.


target.startDamagePopup();


// Clear the result.


target.clearResult();


// Check if the user is dead.


if (target.isDead()) {


// Perform a collapse.


target.performCollapse();


}





</Custom Establish Effect>

Actually it seems to work, but I have one main problem : the damage display.


When this poison is equipped, and I attack, only the additionnal damages are displayed (but the base damages + the additionnal damages are dealed to the enemy).


How can I make it look like the display of a repeatable attack ?


Thanks by advance !
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Do you have a default damage popup in your game? Does other skills do damage popup when you hit with them?


anyway, maybe you can try adding this line as the first line of your notetag?


target.startDamagePopup();


so that your notetag will look like

Code:
<Custom Establish Effect>
target.startDamagePopup(); 
// Check if the action deals HP healing and the target is alive.
// and so ooooooooon
 
Last edited by a moderator:

InBlast

The Mad Hamster
Veteran
Joined
Nov 2, 2015
Messages
287
Reaction score
89
First Language
French
Oh, it works ! Thanks ! 
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top