Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

[Help!] Condition: Specific Actor in first position

SteveHead

Villager
Xy$
0.00
Hello everyone !

In my game, I want that a specific action plays ONLY when the actor N% is in first position of the team.
Did you know a script which is able to do that ?

Thanks a lot !

PS: Sorry for my English, i'm french :p
 

Status Gear Entertainment

Praised Adventurer
1. You can set a control variable to Game Data > Party > Member #1. That is the first position (party leader) of the team.
2. Then you can use the conditional branch to check for the variable. No scripts needed.

I also did some more research for you and found :
Code:
$gameParty.leader() && $gameParty.leader().actorId() === 1
will return true if actor 1 is in first position, and false if someone else is.
 
Last edited:
Top