For example, let's say I want to make a "team combo attack" (I actually made a script request similar to this but this thread is more about me trying to wing it and make the half-assed version of what I wanted), and in order for Actor A use this attack, Actor A must have the required amount of TP to perform this action and not be dead/paralyzed/otherwise unable to act, PLUS Actor B must ALSO be in a suitable state to act (not dead/paralyzed/etc), even though they are not directly using the skill.
A simple comparison would be Vivi and Steiner in Final Fantasy IX. In order for Steiner to use his Sword Magic skills, Vivi must be in the party and must also not be dead or otherwise unable to act.
Is there any way to do this without scripts? If not, what sort of script would I need?
yes, within limits.
Any skill can call a common event, and that event can check and do a lot.
Basically you'll need two skills (or more): one that simply calls a common event, and then one or more skills that are force-actioned by the common event depending on the checked conditions. For example, if the conditions for the full skill aren't fulfilled, the common evewnt could then trigger a regular attack or a low-power-version.
The main problem with this is that common events are executed after battle actions, placing the skill use outside the regular turn sequence.
If that is no problem, then you can do it that way.
You wanted a solution that will restrict you from using a skill. That's all that script does.
I don't know what I said up there but it was just an example.
My typo. It's `$data_skills` with the `s` at the end.
Okay I've been playing around with it and run into a few problems...
First of all, the restriction that they must both be capable of performing the skill (not dead) seems to work.
But it acts very strangely otherwise.
First of all, both actors must have enough TP to perform the skill. In this case, I didn't want this to happen. All I really want is to check if the other actor is dead/otherwise immobile or not.
But the biggest problem is that, if you select TP skills for both actors, but the first actor's skill causes their TP to fall below the required TP for the other actor's skill, then the other actor's turn is completely skipped.
Any idea how to fix this?
I'm going to pop this over into RGSSx Script Support
I still need help with this 🙁
My use conditions are very strict. I don't have a solution for your special case where someone is no longer able to use the skill, but because they COULD have used it before, you're still allowed to use it.
For example say you have a skill that consumes an item to use.
If you only have one of that item, and two people are trying to use the skill, should both people be allowed to execute it?