MV Damage over Time not having Damage Popup

OMG I'm already here again 👋 Hi everyone ♥♥♥
I was able to fix my other issue~ So I tried my best to find another one (what)
Okaaaay--- so, tbh I found more than one topic about this same exact problem, but most of them were unanswered, and others where not useful 😮‍💨😩
So here we are:
I am using Yanfly Extended Damage over Time AND also using Victor Damage Popup Plugins
They perform amazing, BUT when a State should do damage with a DoT formula, it doesn't show any damage popup.
Damage and eventual death from the damage are calculated and executed perfectly, but "graphically" there aren't numbers of the actual damage that pops up over the enemy/actor. This is the biggest problem, but there are more, even if small.

I already tried moving the Plugins, and the effects are differents.

When Victor's Damage Popup is under Yanfly's plugins, everything works perfectly fine but:
-the already mentioned problem with DoT damage popup not showing
-minor graphic settings from the plugin (Damage Popup) ignored in-game, but ONLY on the Actors side
- BUT the Plugin works right, showing weakness, resit, absorb, etc popups at damage, as well as States names the moment they are added and removed

When Victor's plugins are ABOVE Yanfly's plugins:
-graphic settings from the plugin (Damage Popup) are all perfectly respected
-damage popup for DoT showed correctly
- BUT weakness, resit, absorb, etc popups (at damage) don't show anymore, nor do the States name when added.

So atm it's like I need to chose only some of the plugin functions, cause I can't have all at once. The most useful situation is, of course, the one that occurs when the plugins are in the right order (first case) but not having the DoT damage popup is MAKING ME CRAZY 😠

Is there someone out there with a nice idea or a solution? ♥♥♥

As always, I apologize for my (SURELY) very poor writing, I'm still learning PLEASE BE GENTLE 😅 <-- scared italian girl
Any time you post for help with something involving code or notetags you should always include a screenshot (or copy/paste) what you have. It's difficult/impossible to accurately give you advice on how to fix something if we don't know what you have.

That being said...as a generic thing to try, include in your Yanfly notetag user.startDamagePopup(); - see if explicitly calling it makes it work.

If not, the plugins just might not be compatible with each other without some editing of their code.
Oh! 😩
Ok, I'll keep that in mind. I found other topics about this issue and I took for granted that it was these exact plugins the problem/to have incompatibility issue, so yeah, sorrysorry. I am not so skilled in finding where to edit the code, as well as I'm not so sure HOW difficult it would be, so I'm ready to take other roads if needed, but I'd really love to make this work ♥ 😢

The code for the State is this:
Code:
<State Animation: 131>
<DoT Formula: b.def * 3>
<DoT Animation: 67>
<Custom Apply Effect>
target.removeState(16)
target.removeState(36)
</Custom Apply Effect>

It's a "BURNED" State that deals the target DEF value (x3) as damage.
Where should I put the user.startDamagePopup(); in this case? And shouldn't it be TARGET.startDamagePopup(); ?
I tried with this formula too


Code:
<State Animation: 131>
<Custom Apply Effect>
target._burned = Math.ceil(b.def * 3);
</Custom Apply Effect>

<Custom Regenerate Effect>
target._burned = target._burned || Math.ceil(b.def * 5);
target.startAnimation(67);
target.gainHp(-target._burned);
target.startDamagePopup();
if (target.isDead()) {
  target.performCollapse();
}
target.clearResult();
</Custom Regenerate Effect>

But this actually doesn't apply damage AT ALL, it's not just like it's not popped up. 👋
Note that any damage formula from the regular engine (trough Ex params: regenerations) is correctly displayed with damage popup anyway. The problem is any type of formula from the DoT code, and any variants in just "Hp regeneration" from the main command.
shouldn't it be TARGET.startDamagePopup(); ?
No. You're not in the middle of using a skill, so the game has no such thing as an attacker and target.

You can type target, but during the regeneration phase it's just going to refer to the same battler.
Code:
<Custom Regenerate Effect>
target._burned = target._burned || Math.ceil(b.def * 5);
target.startAnimation(67);
target.gainHp(-target._burned);
target.startDamagePopup();
if (target.isDead()) {
  target.performCollapse();
}
target.clearResult();
</Custom Regenerate Effect>
Yeah, that would be it...I had to add that to my poison state to get it to display popups.

If that doesn't work, and you already experimented with moving them in the plugin manager, then you're looking at getting (probably commissioning) someone to write a plugin extension specifically to get these two things working with each other.
No. You're not in the middle of using a skill, so the game has no such thing as an attacker and target.

You can type target, but during the regeneration phase it's just going to refer to the same battler.
Oh, I see. Thank you ^^ And of course thanks for your replies and help, you're super kind ♥

Yeah, that would be it...I had to add that to my poison state to get it to display popups.
Hm... That's weird. I just noticed that using that formula (the same one I pasted before) it's not like I don't have a damage popup, but I don't have damage AT ALL.. So now I wonder HOW it worked for you in the Poisoned state 😮‍💨 it's getting confusing.
It gives me popup damage only if I don't delete the "Hp regeneration -20%" that I have on Poisoned Status as basis. That gives me the popup damage alright, but it just gives the -20% HP damage (and its popup).

I got that I need to work on the code to make the damage popup of the DoT formula to be displayed, but now I'm confused why this formula doesn't work at all. have I done something wrong? Maybe the formula, in this case, must be written differently?
Hm... That's weird. I just noticed that using that formula (the same one I pasted before) it's not like I don't have a damage popup, but I don't have damage AT ALL
Oh. Very similar to what I discussed in my last post - you're talking about b but there's no such thing. There is no target of an attack during the regeneration phase.

So when you calculate the burn damage with b.def that returns undefined and nothing else will work from there.

Change b.def to user.def and see if it all works from there (you can even try taking out the damagePopup call to see if it's unnecessary).

Also...is there a reason you're storing that burn damage amount on the actor? Do you use it someplace else?
Change b.def to user.def and see if it all works from there (you can even try taking out the damagePopup call to see if it's unnecessary).
You were absolutely right, thank you! 😍 I'm learning! ♥

Unfortunately, even if now the damage is correctly executed on the target with the State, still no Damage popup even with the damagePopup call. The Plugin just don't want to work that, I'll try to find someone capable of working around it, or I'll just think of something else different from the DoT formula 😐😐

Also...is there a reason you're storing that burn damage amount on the actor? Do you use it someplace else?
This is such an excellent question, especially because I didn't know I was doing that! :kaomad3: I just copy-pasted and edited another code so maybe I left in something I didn't really need. Can I ask you what part is superfluous? OR EVEN BETTERE how can I work with that stored damage eventually? I like to try things♥♥♥

Anyway thank you so much for your patience 🙏
Can I ask you what part is superfluous? OR EVEN BETTERE how can I work with that stored damage eventually?
If you're going to be doing stuff working in notetags, it's a good idea to do some JavaScript tutorials so that you have some understanding of what you're doing. I recommend w3schools, starting with the Statements chapter, but there are a bunch available if you Google them.

But for now:
Code:
<Custom Apply Effect>
target._burned = Math.ceil(b.def * 3);
</Custom Apply Effect>

<Custom Regenerate Effect>
target._burned = target._burned || Math.ceil(b.def * 5);
These lines are not productive. In your Custom Apply Effect, it's creating a variable that gets stored on the battler (which, if it's an actor, means it gets written into the save file and everything).

Then, at the beginning of your Regenerate Effect, it says "if this variable doesn't exist on the battler, create it with this other value". So
1 - It's pointless to have that because the variable will exist from the Apply Effect, and
2 - I don't see the point of having two different values for it (one is defense * 3, the other defense * 5).

You should delete the Apply Effect entirely (at least, if that's the one that you have...I'm confused because you posted, like, two entirely different versions of this state), then delete that first line from your Regenerate Effect and simply put the damage into your gainHp call:
Code:
target.gainHp(-Math.ceil(b.def*3));

If you choose not to do that, then that _burned variable will exist on the battler and can be referenced by anything, not just this state.

Original thread: https://forums.rpgmakerweb.com/threads/damage-over-time-not-having-damage-popup.148257/