Removing a Dead (Knocked Out) Character from Followers on Map

professorbeej

Villager
Member
Joined
Feb 27, 2019
Messages
29
Reaction score
10
First Language
English
Primarily Uses
RMMV
Hey, guys. I was wondering if anyone knew how to make it so that when a character is knocked out or at 0 HP, they don't show up as followers on the map.

I found an old thread about doing it in Ruby, but I can't seem to find the JS equivalent or RMMV plugin.

I have an event that applies knockout to 2 party members and the third has to run off to save them. But the dead characters are still leading the group on the map, so its kind of weird.

Thanks!
 

Weremole

Veteran
Veteran
Joined
Jan 22, 2016
Messages
261
Reaction score
216
First Language
Swedish
Primarily Uses
Why not just remove them from the party or disable the followers?
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
If they are specific characters then just apply a Remove Party member event after the battle for the two dead members.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,254
Reaction score
1,254
First Language
Spanish
Primarily Uses
RMVXA
Code:
Game_Followers.prototype.initialize = function() {
    this._visible = $dataSystem.optFollowers;
    this._gathering = false;
    this._data = [];
    for (var i = 1; i < $gameParty.maxBattleMembers(); i++) {
        this._data.push(new Game_Follower(i));
    }
};
Code:
    for (var i = 1; i < $gameParty.maxBattleMembers(); i++) {
        this._data.push(new Game_Follower(i));
    }
Code:
  this._data = $gameParty.members().filter( function(member) {return member.isAlive()} ).map( function(actor) {return new Game_Follower(actor.actorId)})
I *think*.
I'm not familiar with map and filter blocks as I'm with their Ruby counterparts.
but that's how I'd do it in Ruby: from Party select alive members, return one Follower per resulting ID.
the original was: from 1 to max battle members, repeat create one Follower per database ID.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top