I'm working on 'joint skills' in my RPG maker MV project, in which two characters join forces.
These skills cannot be used if a certain member is not in the party or that certain party member is affected by a status effect that makes you lose control of that character, like paralysis, rage or confusion.
With the code snippet below, the joint skill cannot be used when Actor 3 is not in the party or when he is dead (State 1).
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(3))) {
if ($gameActors.actor(3).isStateAffected(1)){
value = false;
}
else {
value = true;
}
} else {
value = false;
}
</Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(3))) {
if ($gameActors.actor(3).isStateAffected(1)){
value = false;
}
else {
value = true;
}
} else {
value = false;
}
</Custom Requirement>
This works fine, but I have more states to add and I cannot get this to work.
I made a variable list as follows:
var status = []:
status.push(1, 7, 8, 9, 10, 11, 13, 49, 104, 120);
status.push(1, 7, 8, 9, 10, 11, 13, 49, 104, 120);
if ($gameActors.actor(3).isStateAffected(1) || $gameActors.actor(3).isStateAffected(7)) {
Anyone here that can point me in right direction?
Thanks in advance!