How to put an actor at the top position in formation?

Hello, how can I soft-lock player 1 to always be on the top formation?

For example, persona 3 to 5. The MC always is the leader so he's automatically on top and cant be removed.
Are you asking for RPG Maker MV or MZ? You posted in the MZ forum, but your profile says you use MV.

For MV, Yanfly's Party System can do this.

For MZ, it's Party System VisuStella.
You can lock actor 1's position in the formation by putting this in a script call:

JavaScript:
$gameActors.actor(1).isFormationChangeOk = function() {
    return false;
};

To unlock it again, you can use this:

JavaScript:
$gameActors.actor(1).isFormationChangeOk = function() {
    return true;
};

If you need to lock/unlock a different actor, just change the number 1 to correspond to the actor ID in question.
Are you asking for RPG Maker MV or MZ? You posted in the MZ forum, but your profile says you use MV.

For MV, Yanfly's Party System can do this.

For MZ, it's Party System VisuStella.
oh sorry for the confusion, I recently updated to MZ.

Thanks for the links ^^ but cant really buy plugins atm. I'm just testing out game functions.

You can lock actor 1's position in the formation by putting this in a script call:

JavaScript:
$gameActors.actor(1).isFormationChangeOk = function() {
    return false;
};

To unlock it again, you can use this:

JavaScript:
$gameActors.actor(1).isFormationChangeOk = function() {
    return true;
};

If you need to lock/unlock a different actor, just change the number 1 to correspond to the actor ID in question.

ohh thank you so much! this worked exactly like I wanted it!
SummonPos.PNG


Excuse me sorry if this post out of topic. Meanwhile, so i am using SRD_SummonCore, I want to summon a robot and place it in line with the actor 5 not in front of the summoner. Do you guys know how to do this ?

Captureas.PNG
View attachment 235843

Excuse me sorry if this post out of topic. Meanwhile, so i am using SRD_SummonCore, I want to summon a robot and place it in line with the actor 5 not in front of the summoner. Do you guys know how to do this ?

View attachment 235844
Honestly, this is about the weirdest place that you could have put this question. I'm not telling you that to be mean, but rather to help you have a higher chance of finding the help that you need in the future. Necroing a thread in the MZ Support forum isn't really the best way to find good advice about a completely unrelated matter regarding a completely unrelated plugin, for a completely different version of RPG Maker. It's generally best to start your own topic, in the proper forum, so that your question has a higher chance of reaching people that can help you.

However, you can try setting the X position to:
JavaScript:
600 + index * 32

And try setting the Y position to:
JavaScript:
280 + index * 48

But whether or not that's going to work depends on whether or not you've got plugins that are altering the home positions of the actors. You can try it and see, and adjust it if necessary. If it doesn't work, and you can't figure out how to adjust it, then I suggest making a thread about this in the JS Plugin Support forum. I don't use MV or Summon Core, or any of the other plugins that you're probably using, so I'm not really in a good position to test out solutions for you.
Oh o
Honestly, this is about the weirdest place that you could have put this question. I'm not telling you that to be mean, but rather to help you have a higher chance of finding the help that you need in the future. Necroing a thread in the MZ Support forum isn't really the best way to find good advice about a completely unrelated matter regarding a completely unrelated plugin, for a completely different version of RPG Maker. It's generally best to start your own topic, in the proper forum, so that your question has a higher chance of reaching people that can help you.

However, you can try setting the X position to:
JavaScript:
600 + index * 32

And try setting the Y position to:
JavaScript:
280 + index * 48

But whether or not that's going to work depends on whether or not you've got plugins that are altering the home positions of the actors. You can try it and see, and adjust it if necessary. If it doesn't work, and you can't figure out how to adjust it, then I suggest making a thread about this in the JS Plugin Support forum. I don't use MV or Summon Core, or any of the other plugins that you're probably using, so I'm not really in a good position to test out solutions for you.
Oh okey thanks for your suggestion !

@ray_stride07, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


If you still need help, please make a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-put-an-actor-at-the-top-position-in-formation.142323/