Is there a way to check which member is in a certain slot (the 2nd slot in my case) of a party?
Party Slot Check
RPG Maker MV SupportHi!
Sure it is 🙂
Replace X with numbers starting with 0.
Eg:
$gameParty.members()[0]._actorId - will return the Id of the actor that is the first party member.
$gameParty.members()[1]._actorId - it will return the id of the actor that is the second party member.
Sure it is 🙂
Code:
$gameParty.members()[X]._actorId
Replace X with numbers starting with 0.
Eg:
$gameParty.members()[0]._actorId - will return the Id of the actor that is the first party member.
$gameParty.members()[1]._actorId - it will return the id of the actor that is the second party member.
Also doable without scripting, via Control Variables > Game Data > Party > Member #X.
Code:
◆Control Variables:#0001 actorId = Actor ID of the party member #2
◆If:actorId = 1
◆Comment:Actor 1 is in this position
◆
:Else
◆If:actorId = 2
◆Comment:Actor 2 is in this position
◆
:Else
◆Comment:etc
◆
:End
◆
:End
I decided to go with this solution, and it works great! Thanks!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/party-slot-check.115468/