[RMVX ACE] CONDITIONAL BRANCH:ACTOR IS IN THE PARTY
Posts
Pages:
1
I made a battle event to add monsters to my party after each battle.
@>control variables:0001=random no.(1...4)
@>conditional branch:variable 0001 ==1
@conditional branch:wolf is in the party
@>
:else
This is the first part of the battle event and it works pretty well.
Wolves can't join my party when a wolf is in my party.
But I have a problem which is that wolves join my party when a wolf in my party doesn't participate in battles.
As you know,4th member of a party participates in battles but 5th member of a party doesn't.
So wolves join my party even when a wolf is in my party.
I really want to know how I can fix the problem.
@>control variables:0001=random no.(1...4)
@>conditional branch:variable 0001 ==1
@conditional branch:wolf is in the party
@>
:else
This is the first part of the battle event and it works pretty well.
Wolves can't join my party when a wolf is in my party.
But I have a problem which is that wolves join my party when a wolf in my party doesn't participate in battles.
As you know,4th member of a party participates in battles but 5th member of a party doesn't.
So wolves join my party even when a wolf is in my party.
I really want to know how I can fix the problem.
Instead of "wolf is in the party" for your conditional branch do "script" and in the box write
$game_party.all_members.include?($game_actors[id of wolf character])
$game_party.all_members.include?($game_actors[id of wolf character])
Pages:
1















