Hi !
I've been adding my ideas smoothly on my project so far, and I begin to get used to YEP's notetags to implement mechanics.
My issue here is a popup error on a skill that drain HP then heals allies a certain amount of the drain dealt.
So the skill is set as a drain HP on one enemy, then I add a Post-Damage Eval notetag that does the following :
The "startDamagePopup" here is supposed to show the heal on allies, but it doesn't show things correctly. Either it only shows the drain and heal on the skill's user only, or it shows only the heal on everyone and the drain popup disappears.
The skill itself works, but it just shows popups incorrectly and I tried multiple ways to get around it without success.
Can someone help me on it to make the effect more understandable please ?
I've been adding my ideas smoothly on my project so far, and I begin to get used to YEP's notetags to implement mechanics.
My issue here is a popup error on a skill that drain HP then heals allies a certain amount of the drain dealt.
So the skill is set as a drain HP on one enemy, then I add a Post-Damage Eval notetag that does the following :
Code:
<Post-Damage Eval>
var pourfam = Math.floor(value*0.5);
$gameParty.aliveMembers().forEach(function(member) { member.gainHp(pourfam); });
$gameParty.aliveMembers().forEach(function(member) { member.startDamagePopup(); });
</Post-Damage Eval>
The "startDamagePopup" here is supposed to show the heal on allies, but it doesn't show things correctly. Either it only shows the drain and heal on the skill's user only, or it shows only the heal on everyone and the drain popup disappears.
The skill itself works, but it just shows popups incorrectly and I tried multiple ways to get around it without success.
Can someone help me on it to make the effect more understandable please ?