Pet followers, followers who don't fight in battle

Anyway to have a pet follow the player around but not fight in battle?
Can you common event remove actor / add actor on battles?

I just made a script to remove certain a actor Game_System.prototype.onBattleStart, but it stops your first turn for some reason.

EDIT: I went to the Scene Manager instead.

This plugin will remove any character on the character set "Nature" in battle because I just assume the pet is a dog.
PHP:
BattleManager.endBattleNoFollower = BattleManager.endBattle;
BattleManager.endBattle = function() {
   while($gameActors.tempRemoved.length > 0){
       $gameParty.addActor($gameActors.tempRemoved[0]);
       $gameActors.tempRemoved.shift();
   }
   this.endBattleNoFollower.apply(this, arguments);
};
Scene_Battle.prototype.initNoFollower = Scene_Battle.prototype.initialize;
Scene_Battle.prototype.initialize = function() {
   $gameActors.tempRemoved = $gameParty.tempRemoved || [];
   for(var i = 0; i < $gameActors._data.length; i++){
       if($gameActors._data[i] === undefined
       || $gameActors.tempRemoved.indexOf(this._actorId) !== -1
       || $gameActors._data[i]._characterName !== "Nature") continue;
           this._battleCount--;
           $gameActors.tempRemoved.push(i);
           $gameParty.removeActor(i);
   }
   this.initNoFollower.apply(this,arguments);
};

Screen%20Shot%202017-04-01%20at%209.52.35%20PM.png

Screen%20Shot%202017-04-01%20at%209.52.42%20PM.png
Can you common event remove actor / add actor on battles?

I just made a script to remove certain a actor Game_System.prototype.onBattleStart, but it stops your first turn for some reason.

EDIT: I went to the Scene Manager instead.

This plugin will remove any character on the character set "Nature" in battle because I just assume the pet is a dog.
PHP:
BattleManager.endBattleNoFollower = BattleManager.endBattle;
BattleManager.endBattle = function() {
   while($gameActors.tempRemoved.length > 0){
       $gameParty.addActor($gameActors.tempRemoved[0]);
       $gameActors.tempRemoved.shift();
   }
   this.endBattleNoFollower.apply(this, arguments);
};
Scene_Battle.prototype.initNoFollower = Scene_Battle.prototype.initialize;
Scene_Battle.prototype.initialize = function() {
   $gameActors.tempRemoved = $gameParty.tempRemoved || [];
   for(var i = 0; i < $gameActors._data.length; i++){
       if($gameActors._data[i] === undefined
       || $gameActors.tempRemoved.indexOf(this._actorId) !== -1
       || $gameActors._data[i]._characterName !== "Nature") continue;
           this._battleCount--;
           $gameActors.tempRemoved.push(i);
           $gameParty.removeActor(i);
   }
   this.initNoFollower.apply(this,arguments);
};

Screen%20Shot%202017-04-01%20at%209.52.35%20PM.png

Screen%20Shot%202017-04-01%20at%209.52.42%20PM.png
Im a bit confused once the plugin is added do I make the character name "Nature" or something else. Im new to rpg maker mv and don't know much. Or do I add it as its own plugin or into something else?
I'm sorry. It's a plugin.
Edit the part "Nature" to the png name of your pets, "Pets" or whatever the guy is.
I figured it out eventually I just renamed all the pictures that character used.
That's one way of doing it, but don't be frightened of editing a little javascript string. Learning is power and javascript will make better games.

By the way, did your pet have a battler? I notice the guy rushing in at the end of the battle with this. If he has a battler it would be a cute congrats to the master deal, but I can fix it if you don't want him running in.
That's one way of doing it, but don't be frightened of editing a little javascript string. Learning is power and javascript will make better games.

By the way, did your pet have a battler? I notice the guy rushing in at the end of the battle with this. If he has a battler it would be a cute congrats to the master deal, but I can fix it if you don't want him running in.
Oh yes I loved that he runs in at the end of the battle. But when I was using it I found when the Pet/Actor used wasn't added in the party by me he would automatically join at the end of the battle. Anyway to fix this?
EDIT: It seems to always happen the second battle without the pet.
Odd. I can't seem to detect $gameActors._data[actor] as being defined when not in the party, but I'll add this hidden boolean too. I think this should work.
PHP:
BattleManager.endBattleNoFollower = BattleManager.endBattle;
BattleManager.endBattle = function() {
   while($gameActors.tempRemoved.length > 0){
       $gameParty.addActor($gameActors.tempRemoved[0]);
       $gameActors.tempRemoved.shift();
   }
   this.endBattleNoFollower.apply(this, arguments);
};
Scene_Battle.prototype.initNoFollower = Scene_Battle.prototype.initialize;
Scene_Battle.prototype.initialize = function() {
   $gameActors.tempRemoved = $gameParty.tempRemoved || [];
   for(var i = 0; i < $gameActors._data.length; i++){
       if($gameActors._data[i] === undefined
       || $gameActors._data[i]._characterName._hidden // added this line
       || $gameActors.tempRemoved.indexOf(this._actorId) !== -1
       || $gameActors._data[i]._characterName !== "Nature") continue;
           this._battleCount--;
           $gameActors.tempRemoved.push(i);
           $gameParty.removeActor(i);
   }
   this.initNoFollower.apply(this,arguments);
};
After replacing the old one with this it didn't seem to work he reappeared at the end of the second battle.. I'm sorry for all this trouble.
I came across this, perhaps this will help you accomplish your request? http://himeworks.com/2016/03/guest-followers/

Original thread: https://forums.rpgmakerweb.com/threads/pet-followers-followers-who-dont-fight-in-battle.76703/