MV At map: always walk as main Character

I only want the main character to walk on the map, without companions and without ever loading another character sprite to walk, even if the main character is not $game.partyMembers()[0] anymore. Any help is appreciated! 🙂

Maybe it has something to do with this in rpg_sprites.js:
Code:
Sprite_Character.prototype.setCharacter = function(character) {              
    this._character = character;                       
};
But when I try to replace "character" with something else the game crashes.
in system settings, there is a checkbox for "followers", check it off
and it does the trick.
you can disable the follower by event command.
but the party sprite is usualy that of the first party member and to change that behaviour you either need a plugin or some really complex eventing with change actor sprites
Is it really necessary for the player to change the formation? You could either disable the command altogether (and therefore lock in the party leader) or use a plugin like Yanfly's Party System or the Kadokawa plugin FixedBattleMembers.js to just lock in the leader. I feel such a solution might be easier than trying to find a plugin that loads another sprite than the party leader's.
I found it:
Code:
Game_Player.prototype.refresh = function() {
    var actor = $gameActors.actor(250);            //original: var actor = $gameParty.leader();
    var characterName = actor ? actor.characterName() : '';
    var characterIndex = actor ? actor.characterIndex() : 0;
    this.setImage(characterName, characterIndex);
    this._followers.refresh();
};

var actor used to be $gameParty.leader() and now var actor is $gameActors.actor(250). So on the map it always shows $gameActors.actor(250) walking! 🙂
Still thx to all for the quick answers! 🙂

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/at-map-always-walk-as-main-character.150771/