Behind me! Right behind me!

Sup?


Man, I've been trying to ask this question but i keep forgetting what the question was... even now, i opened the window to make this post - and i freaking forgot! then five minutes later I remembered and now we're here. And that's important.


And specifically, who's right behind me (or the player at least), that's importanter.


Is there a way to indicate that the new party member, regardless of who it is, should be put in the second slot, and that everyone else moves down one slot?


so if the lineup was


1 dante


2 randal


3 jay


4 bob


and you encounter olaf (olaf, beserker! *olaf makes his metal face*) and it becomes


1 dante


2 olaf


3 randal


4 jay


5 bob


without it being


1 dante


2 olaf


3 jay


4 bob


5 randal


Is this possible? any help is appreciated.
Try this - save to a new .js file in your Plugins folder and add to your plugin manager


Game_Party.prototype.addActor = function(actorId) {
if (!this._actors.contains(actorId)) {
this._actors.splice(1,0,actorId);
$gamePlayer.refresh();
$gameMap.requestRefresh();
}
};


I haven't tested it - if you get an error, please post a screenshot of the console log
Much appreciated, it doesn't give an error message - but it causes strange behavior.


characters are added to the party, but not added to the battle party. 
Do you have any plugins?  Does it work with the plugins disabled?
Are the other party members "story" party members? Because if they are required to be in the party before obtaining Olaf, you could just event remove all other party members, and then add Olaf, and then add back the remaining members. But this is only plausible if all the party members you stated are absolutely going to be in the party at that time.
Are the other party members "story" party members? Because if they are required to be in the party before obtaining Olaf, you could just event remove all other party members, and then add Olaf, and then add back the remaining members. But this is only plausible if all the party members you stated are absolutely going to be in the party at that time.

Sadly, the other two are optional.


I'll just work around it.
You didn't answer my question.
You didn't answer my question.

I did. but i think the post swallowed it.


either i'm very unlucky with these text boxes but these things seem quite unwieldy? Is that the word? it's 0041am i don't even know all the words i should anymore.


1: the game does not work when i disable certain plugins. i cannot disable all of them and have enough game left to test it. screen stays black.


2: i have not attempted this in a clean game.


i'm just going to smack a text box in there indicating a "formation tutorial" or something and call it done. i have two boss fights and three more levels of dungeon to fix, as well as a second arch for a first chapter and it's almost new years and i'm never making it in time for my buddy to play on new years eve 🙁


im tired. goodnight.

Original thread: https://forums.rpgmakerweb.com/threads/behind-me-right-behind-me.72655/