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

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

OmnislashXX

Regular
Regular
Joined
Mar 30, 2012
Messages
756
Reaction score
3,880
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

Regular
Regular
Joined
Oct 20, 2015
Messages
3,366
Reaction score
2,564
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.
 

Latest Threads

Latest Profile Posts

Is an extension for the jam time limit from 20 min to 30 min possible? :ysad::ysad::ysad: My entry will have a few battles, it seems >.<
Background and composition study
GAbBmfDaIAAEzVM
Ho, ho, ho and mwah, ha, ha. It appears that I will be getting a leg up on the inclusion of Krampus in the 2023 Game Jam. We arrived in Orlando, FL yesterday and my wife found a Krampus Festival for us to attend tonight! Maybe I will be going home with a Krampus!
I was planning on getting new character management feature into Character Generator, but my recent illness has delayed this somewhat. I will try and get it done today (which would be a miracle) but if not, I will have to complete the whole lot by Tuesday. This should hopefully be fine and all other feature updates should not have their target dates affected.

Forum statistics

Threads
136,705
Messages
1,268,955
Members
180,427
Latest member
dopedeala666
Top