- Joined
- Sep 24, 2018
- Messages
- 56
- Reaction score
- 51
- First Language
- English
- Primarily Uses
- VNM
Hi there!
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).
I made a variable list as follows:
Anyone here that can point me in right direction?
Thanks in advance!
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).
This works fine, but I have more states to add and I cannot get this to work.<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>
I made a variable list as follows:
And I tried to fill in that variable in 'StateAffected', but this doesn't work. Also tried to simply list all states as follows:var status = []:
status.push(1, 7, 8, 9, 10, 11, 13, 49, 104, 120);
This also doesn't work.if ($gameActors.actor(3).isStateAffected(1) || $gameActors.actor(3).isStateAffected(7)) {
Anyone here that can point me in right direction?
Thanks in advance!
