YEP Buffs & States Core: Identifying the attacking party member's actor slot

Hi everyone,

I'm playing around with some concepts for enemy skills, and some of them revolve around knowing which specific actor struck them last. I figure there's a way to do this using custom effeccts in states from YEP's Buffs & States Core, particularly during the Custom React / Custom Respond phases, although I don't know how you'd check this.

Does anyone know if it's possible to get a return on which actor slot (or even actor would work) targeted the enemy with the attack?

Thanks!
As far as I know there are no script calls or lunatic code scripts that call upon the actor that last used a skill. So I think you'll have to find some creative way to do what you want.

One thing you might try is assigning a variable and having it increase when a skill is used, probably easiest to do this in the damage formula. Then you could use that variable to influence the enemy action in the way of your choosing, and also of course reset the variable if need be.

Another thing you might try is the Yanfly Enemy AI Core plugin. It essentially lets you set up enemy skill use in a similar way to the FF12 gambit system.
Thanks @HumanNinjaToo - I actually am using the Enemy AI Core, it's fantastic, albeit a little lacking in some criteria.

I could use damage formulas to increase a variable, but I'd need to include them in every Physical skill in the game and that's not really practical, but I am open to other roundabout ways.

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-core-identifying-the-attacking-party-members-actor-slot.122974/