MV Using two skills in a row

Hi,

I would like to create a skill that attacks an enemy, before casting another skill that heals his allies. Up until now I've been using a common event on the first skill to force the second action, but the issue with that is that I have to specify the user. Since this skill would be available to anyone, force action wouldn't really work.

I'm using YEP_SkillCore, so I'm assuming there is a way to do what I need with either the plugin or just a common event that I'm missing.

Sorry about asking a question like this, but I couldn't found any solution on google...

Thanks!
You could probably do it with common events. Just make it so when you use that skill, it executes a common event that forces healing for your party. Anyway, I think that'll work. It's very easy to set up, too.
Is it always the same skill afterward? If yes, just from your description there's no reason it should be two skills.

You can just make the healing of allies happen via a common event or Yanfly Skill Core After Eval notetag; or if you need something fancier, to see the actor go through the casting motions again, you could program it using Yanfly's Action Sequences.

The only reason I can think that it would actually need to be two skills is if there's a choice - you do the first skill then you have a variety of healing skills you can choose from afterward.

In that case, you'd use Yanfly's Instant Cast.
Yeah, what he said. Was typing my response out, but you beat me to the punch 😴
Thanks all for the answer!
The reason I didn't want to use force action was because I wanted the second skill to have the same user as the first. The thing with force action (if I'm using it correctly) is you have to chose the user by default, I don't think I have any way of changing the user to whoever attacked most recently.
I wanted the user to adapt because the healing would scale on his attack.

But it's not too important so I will just set a general healing that doesn't depend on who is casting it, thanks for the help 🙂
(If by any chance that After Eval thing has a way to force a skill to be used by the last user please tell me, I have zero knowledge in coding so I don't really know if that's even possible).

Thanks again and sorry if my issue isn't clear!
(If by any chance that After Eval thing has a way to force a skill to be used by the last user please tell me, I have zero knowledge in coding so I don't really know if that's even possible).
The question is confusing.

1 - it's code, so it does literally whatever you want. But since you would be putting the notetag into a skill, it would necessarily be a part of that skill with whoever activated it being the battler who activated it.
2 - did you read what I said, wherein there's no reason to have two skills?
Thanks all for the answer!
The reason I didn't want to use force action was because I wanted the second skill to have the same user as the first. The thing with force action (if I'm using it correctly) is you have to chose the user by default, I don't think I have any way of changing the user to whoever attacked most recently.
I wanted the user to adapt because the healing would scale on his attack.
You can use force action to have the same user use the followup skill with after eval. just instead of passing a static user to the method, use user in the first skill's notetag

JavaScript:
<After Eval>
BattleManager.queueForceAction(user, [2nd skill's id]);
</After Eval>

But like Turan said, if the user always uses the same follow up skill unconditionally, its better to have the one skill just do both effects. You said the followup skill scales off the user's attack. is this only the case for that one specific actor or for anyone using it? to combine both skills so that using the first skill heals the party afterwards you can run something like this to do it
Code:
<After Eval>
a.friendsUnit().aliveMembers().forEach(member => member.gainHp(your formula));
</After Eval>
<After Eval> BattleManager.queueForceAction(user, [2nd skill's id]); </After Eval>
Thank you so much, that works perfectly !

<After Eval> a.friendsUnit().aliveMembers().forEach(member => member.gainHp(your formula)); </After Eval>
I'll keep that in mind thanks but since that healing thing was an exemple and I have other "double" skills that would be a bit hard to translate in code, I'll use the first bit of code

Thanks everyone for the help 🙂

Original thread: https://forums.rpgmakerweb.com/threads/using-two-skills-in-a-row.160562/