Looking for a new Aggro system that can work alongside TRG.

What I request is a new system of Aggro (either an existing script that I haven't found yet doing the following, or a completely new one) that makes enemy targeting based on being "Subject-Target bound", instead of targeting based purely on TRG. What I mean by "Subject-Target bound" is that if Actor1 targets EnemyA, then EnemyA will target Actor1 for its next turn instead of any other actor. If nobody attacked EnemyB then that enemy has a split equal chance of targeting any actor. This aggro effect should last one turn. (when the enemy finishes it's next turn)

Here's a picture example that is horribly paint-drawn:

G7eldvD.png


The reason why I cannot use TRG is because it is a universal function, thus creating aggro that I do not want. However I still want to use TRG as a universal function for things like Provoke/Hide, and the TGR check should be there WHILE having a higher priority over this new aggro system.

Note: This may be possibly different depending on the turn-order system used (default engine executes enemy move actions as soon as the player's turn starts, while scripts separating turn order for individual battlers based on AGI/etc. may execute enemy move actions when their turn comes) However I believe it should work the same for both if i'm not mistaken. (in the case of default system, it would just effect the next turn, which would be okay)

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-a-new-aggro-system-that-can-work-alongside-trg.25913/