Issue with Yanfly's Self Variable Plugin Not Always Recognising Sub Variables in Copied Events.

First of all this isn't necessarily an advanced issue, but it reasonably complex and it does require some reasonably advanced understanding of Yanfly's plugins. It also involves some seemingly inexplicable quirks and inconsistencies.

I'm using Yanfly's Self Variable plugin as it allows me to use just one variable for all of my custom combat system enemies' HP, I can simply copy and paste the same enemy event and it will act independently for their damage and health even with it all being the same variable. I've got it working perfectly with 4 enemies at once this way, there's no reason other than performance that I couldn't just have 100 of them working simultaneously and independently, but all copied from 1 event with 1 variable.

It functions perfectly for health and damage as my enemy death is activated by a new event page with a variable value activator. (This is important as it's the only function that seems to recognise self variable values when they all share the same variable using this plugun.)

However, it seems that for all other variable event functions that the self variable does not recognise the individual copied events. It clearly confuses the program as the variable(s) remains at the default setting for all events, even though my system still works just fine and the independent self variables are clearly changing somewhere in the code as the enemies die on the right amount of HP independently.

In trying to make health bars for my enemies I've encountered this issue as I can't use a variable to display their health, it just remains at the default variable setting for all of them.

A way around this could be for me to incorporate HP bars as new pages on health remaining amounts; as page conditions DO understand the variable value, but that's a ridiculous way to do it and it would make bug fixing a potential nightmare. Pro's for that method are I only have to do it for the one event, but my system is complex enough already, I don't want my enemy event to have 10x the pages it has now just to have an HP bar.

An even worse way would be I could also add individual variables for each enemy but there's no way I'm doing that when currently I can use 1 variable for an infinite amount of enemies on screen at once with vastly less work.

I'm pretty much leaning towards not using any enemy HP bars at all, which I'm actually fine with, but if there's another way I might try it.

Note: It must as be part of of my single battle enemy event - no exterior parallel processes.

So in theory, Yanfly's plugin must create separate self variable values for the sub variables it creates from that single variable from a copied event as it operates my damage system perfectly and independently. Otherwise all my enemies would die at once, but they don't, somewhere in the code those independent values exist.

The plugin clearly assigns temporary sub variable values somewhere in the code but for whatever reason it only works with page variable changes, not event variable changes which confuses the whole system and leaves it at the default setting. I need to find a way to use it, or I can forget about enemy HP bars, without a lot of extra work. As I've said, it's actually not that much of an issue if I do have to forego enemy HP bars, but I'd prefer to have them overall.

Any help or insight is greatly appreciated.

I've moved this thread to Plug-In Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-yanflys-self-variable-plugin-not-always-recognising-sub-variables-in-copied-events.80613/