So I've programmed a conditional branch script that displays a picture on screen if an actor is in the party.
First, it checks the position of the actor within the party, e.g, for Party leader;
and party member 1
And then it shows a picture if the condition is true.
I'm trying to do the same for Enemies in the battle troop but it doesn't seem to be functioning. Here is the code:
Why does the above script not function?
First, it checks the position of the actor within the party, e.g, for Party leader;
Code:
If : Script : $gameActors.actor(1) === $gameParty.leader()
and party member 1
Code:
If : Script : $gameActors.actor(1) === $gameParty.members()[1]
And then it shows a picture if the condition is true.
I'm trying to do the same for Enemies in the battle troop but it doesn't seem to be functioning. Here is the code:
Code:
If : Script : $gameEnemies.enemy(21) === $gameTroop.members()[1]
Why does the above script not function?