rearrange KOed party members

● ARCHIVED · READ-ONLY
Started by captainproton 5 posts View original ↗
  1. I've tried doing this through common events and have gotten nowhere.

    I was wondering if someone could do up a script which sends KO'ed/dead party members back in the line, so your party isn't being led by a dead body.
  2. Not sure if this is quite right ... play around with it a bit. In particular, make sure your end-of-battle messages only apply to people who ARE in the party (and that it hasn't done the swap before giving out the EXP and levels). I thought something weird was happening when I tested it in that area, but I have to go out and don't have time to check it carefully.

    Code:
    class Game_Party  def on_battle_end    super    @actors = @actors.select{|id| $game_actors[id].alive?} + @actors.select{|id| $game_actors[id].dead?}    $game_player.refresh    $game_map.need_refresh = true  endend
    It may just be a matter of calling the whole thing at a point later than $game_party.battle_end - maybe from Scene_Battle or BattleManager just before it activates the previous scene might be a better point.
  3. Okay--and I am so sorry, but I am SO clueless about scripting--so I paste this into Scene_Battle or BattleManager? Whereabouts?

    (And thank you SO MUCH, by the way!)
  4. New slot at the bottom of the rest of the scripts :)


    Edit: okay, just tinkered with it a bit more, and I must have imagined that issue earlier, as it all seems to do what it should be doing.
  5. Oh, my gosh, Shaz! This works great! Thank you so much! You are AWESOME!!