Perform different motions with same skill id, depending on actor id

So I'm trying to make the skill basic attack(#0001) perform different motion actions, depending on which actor is using this skill id.
I'm currently using P3X-774's (Vibrato's) battler spritesheets with Lib's Battle Motion plugin.
As things stand right now, the setup for the 'basic attack' skill is for all actors, but i want each actor have their separate 'basic attack' motion,
but still under the same skill id.

Spoiler
basic attack randomizer_common event.png

skill tab_basic attack.png

Code:
<target action>
action common event
if ($gameVariables.value(22) === 1)
motion thrust: user
wait: 12
animation 146: target
action effect
end
if ($gameVariables.value(22) === 2)
motion swing: user
wait: 12
animation 147: target
action effect
end
</target action>
These are the notetags of the skill id #0001 (basic attack).

I'll be using the sprites of the RPG MV Cover characters Ald and Nina for this example.
If i attack with Ald, the skill calls a common event and randomly chooses an attack animation (thrust/ swing), which then he performs.
But if Nina by any chance attacks with the thrust animation, she instantly disappears for a moment, because her thrust animation spridesheet is blank/empty.

Spoiler
Ald_thrust_animation.png
Nina_thrust_animation.png



ald_battler.png
nina_battler.png

I want to let the system know, that Nina is currently using that skill and then only uses the swing animation. That way, I need to write down the skill only once, because ultimately all skills of mine should be applied that way. And not every actor of mine has just 2 or 1 attack motion.

I already have looked up several threads here and there, that have a similar issue, but the answer for me is still nowhere to be found.
I guess something else must still be written inside the skills notetags or the damage formula, but i don't know what exactly.

Help would be greatly appreciated.


Edit:
Okay, figured it out, you just need to insert the code "subject.actorId() == x" (x being the actor id in the actor tab) into the if-statement.
Example code found below:

Code:
<target action>
action common event
if (subject.actorId() == 1 && $gameVariables.value(14) === 1)
motion thrust: user
wait: 12
animation 146: target
action effect
end
if (subject.actorId() == 1 && $gameVariables.value(14) === 2)
motion swing: user
wait: 12
animation 147: target
action effect
end
</target action>
You could use Yanfly's Weapon Unleashed plugin. It has an actor notetag that allows you to replace everyones basic attack with a different skill in your database! http://yanfly.moe/2015/12/26/yep-51-weapon-unleash/

So to properly use it, you'll need to make a "basic attack" for each of your actors, in your skill database and just replace everyones basic attack with the unique ones you've made for them.

If your really going deep, you can also use the same notetag in armor or weapons to give actors multiple basic attacks depending on their gear!
Thanks! It works flawlessly now, although i wanted it to be the same skill id, but there is no way around it.
Thanks! It works flawlessly now, although i wanted it to be the same skill id, but there is no way around it.
No problem! But yeah, sadly that was the easiest way to do it within the system. What you initially are looking for would be a lot more complicated, having to set up a bunch of conditional branches within the skill itself, which would be really annoying to keep track of if you need to change something.
I know, that's exactly what i've broken my head over...:ewink: Best to keep it simple.
Thank you soooooooo much.

Original thread: https://forums.rpgmakerweb.com/threads/perform-different-motions-with-same-skill-id-depending-on-actor-id.82661/