Creating Skills Usable Only With Specific Party Members Present

I'm relatively new to RPG Maker, and I use the VX ACE version.

I'm trying to figure out a way to make it so a certain actor can only use a specific skill if another certain actor is present in the party. For example, if Actor1 has a skill that requires Actor4 to be in the party in order to use it, is that possible? I'm assuming a script would be needed to do something like that...

Thanks for any suggestions!
No, it doesn't need a script.

for your skill, set one as a dummy skill so that all it does is to call up a common event.  The player just sees this one, together with whatever description you put in.

In the common event, have a conditional check that actor 4 is in the party

If yes, do a forced action on actor i which uses the 'real' skill which is one which the player doesn't see, it's just there in your data base.

If no, then some text or whatever else you want to use to tell the player that the skill won't work.
But the actor can still USE the skill - all you're changing is whether it has an effect or not. And in the case it can't be used, you've just wasted a turn - they can't go back and select a different skill.


I suspect the OP is after something that makes it impossible to select the skill, or it won't even show up, if the other required actor is not in the party.


If you don't want them to even be able to select the skill if the required actor is not in the party, you can set up two skills with the same names and icons, and set one to "never use" and give it to the first actor. Then in any event where you add the second actor to the party, you can remove the "dummy" skill and give them the "real" skill (if there's an option to show a message, don't use it), and in any event where you remove the second actor from the party, swap the skills back again.


Anything other than that would require a script.
But if the skill description on the dummy skill specifically says "Can only be used if noodlelump is in the party", then the player will know not to use it if noodlelump has been swapped out.
That's the other question ... does "in the party" mean one of the battlers? Or do they just have to be IN the party (battler or reserve, doesn't matter)? If they must be an active battler, my suggestion wouldn't work. You might be able to use a common event that checks who are the battlers, and if they both are, give the real skill otherwise give the dummy skill, but then you'd have to call the common event at the start of every battle, which means putting it into every single troop.
As a player though, I'd rather not be able to select the skill at all. You know, we're all curious creatures and if the skill is usable even if the description says no, we would still try it at some point. :3


You could use Yanfly's custom cost manager script for this. Make the skill's cost requirement be the presence of the party member, and it won't be usable when that member isn't in the party.
By "in the party", I mean that they are in the party roster. They don't need to be a battler, they can be in reserve.

Wow, so many great suggestions! Yes, I would prefer that the skill just doesn't show up if the conditions aren't met, but having the dummy skill is a great alternative. Shaz's suggestion on the two identical skills with one being removed once the actor is in the party is along the lines of what I thought would work, but I wasn't sure and wondered if there was a better alternative. However, I think that would work fine. I'll have to try all of your suggestions to see what would work best.

Thank you all so much!
Yeah, that'd work and do what you want it to, as long as you are in full control via events of when the second actor joins or leaves the party (if you were using multiple parties and a script that allowed you to swap actors between parties, my suggestion wouldn't work, as you give control of who's in the party at what time to the player).


So it really boils down to whether you want a scripted solution or an evented solution.
I plan on the game only having a total of six or so actors and I'll be in control of who it is and when.

Hmmm... well, I suppose whichever is easier to keep track of? If a script that I can understand can take care of it, great. If not, I'd prefer the eventing. But I'll give both suggestions a try.

Thank you so much for your help!
I always advise, if you can do it with events without things becoming too difficult and complex (and this would not be difficult or complex), then do it with events.
Gotchya. Will do! Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/creating-skills-usable-only-with-specific-party-members-present.35638/