Help! Script Check of the Actors and Enemies position on the side combat screen. [RMMV] - [YEP_X_ActSeqPack1].

Good morning to everybody! I already apologize for any mistake made during my first post.

Basically the problem I have is the one mentioned in the title. I need to let the engine know that Actor is the one attacking and that Enemy is taking the hit.

IMG-20200517-WA0001.jpg


My idea is the following: The same attack has 4 different animations prepared together with some conditionals and depending on the aforementioned positions, one of these would be executed.

IMG-20200517-WA0000.jpg


I tried several but they all resulted in some error. It should be noted that programming languages are beyond my understanding, so I only tried things that I found on the Internet.

I must also say that I am using the YEP_X_ActSeqPack1 plugin for a few things, including the use of conditionals in skills.

My idea of the code goes something like this:
-------------------------------------------------
if user [Check Actor]
target [Check Enemy]
animation 1: target
else if user [Check Actor]
target [Check Enemy]
animation 2: target
else if user [Check Actor]
target [Check Enemy]
animation 3: target
else if user [Check Actor]
target [Check Enemy]
animation 4: target
end
-------------------------------------------------

It most likely doesn't make sense, but it's the structure I got with the little info. that I have.

And that would be all for now. If any programmer has this info. and can you guide me a little I would really appreciate it. Any questions or extra information I will answer as soon as possible.

(I apologize for the English of Google Translate and all the spelling and syntactic errors it causes. I am did not master English as I would like)
I don't think the regular action sequences take target selection into account, other than the default options available to the skill.

I think what you probably need is yanfly selection control. With lunatic code you may set if/then statements for the skill that look at target ID.
I don't think the regular action sequences take target selection into account, other than the default options available to the skill.

I think what you probably need is yanfly selection control. With lunatic code you may set if/then statements for the skill that look at target ID.

Thank you so much. I'm going to take a look at this plugin and see what I get out of there. Sorry for the delay in reply.

Original thread: https://forums.rpgmakerweb.com/threads/help-script-check-of-the-actors-and-enemies-position-on-the-side-combat-screen-rmmv-yep_x_actseqpack1.121736/