(MV) Referencing party position in a formula?

Probably the wrong section to ask, but given that it's for non-plugin, in-engine use I'm not sure where else to put it.


I haven't been able to find mention of what term would be used for what position in the party an actor is(as in 1st, 2nd, 3rd or 4th, by default) for MV. Does anyone know off hand?


edit: Oh that hateful blue message... 
Post this in a Help subforum for the approrpriate Maker - because the answer will be different in every single Maker.
MV Support is what you want for non-plugin related questions for RMMV.


$gameParty.members().indexOf($gameActors.actor(id))


will tell you their position in the party.  The leader will be 0.  So if you want the leader to return position 1, it will be:


$gameParty.members().indexOf($gameActors.actor(id)) + 1


indexOf will return -1 if that actor is not in the party (so if you're doing +1, a result of 0 would indicate the actor isn't in the party).


$gameParty.members() returns a different list depending on whether you're in battle or not.  If you're running it in battle, it will only give you the battle members (first 4, by default), but if you're running it out of battle it will include all the non-battle members as well.
Thanks for the pointers, Shaz(weird not having you moving my posts 😉). I'm not good with technical stuff so I'm unsure if I used the right terminology when asking... I just want to know how to reference party position in a formula for, say, a skill or item(and on trying to look formula stuff up seems right, i just can't quite figure out how to utilize it correctly). Like: if actor is position 1 tgr = 300, position 2 tgr = 200, position 4 tgr =50. Someone helped me do this in ace and it seemed like a much simpler affair..
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
$gameParty.members().indexOf($gameActors.actor(id))

Thank you. This can be used on the editor for plenty of things I have on my mind...  😉

Original thread: https://forums.rpgmakerweb.com/threads/mv-referencing-party-position-in-a-formula.67198/