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.
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.
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:
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.
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>
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.
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>