Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
BloodyHowling

Removing Members After Battle. (rmxp)

Question

Hey guys here's my situation. I have one of my characters as a Summoner Type caster. With certain spells that are used, I'd like to add characters to the battle DURING the battle, and then have them leave the party after the battle is over. Is there a script that allows me to do this easily?

 

Here's how I've got it so far: Using common events, add the summon spirits to the party using the "Change Party Member" button. But from here I can't figure out how to get them out of the party after the battle is over. Is there a Call Script for after battle actions?

 

Would appreciate some help! Thanks guys.

 

-Bloodyhowling

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Add the following to your script editor, in a new entry above Main:

# Edit the following array with the IDs of actors to be removed automatically after battle
ACTORID_REMOVE = [ 1, 2, 3, 4 ]

class Scene_Battle
 alias old_battle_end battle_end
 def battle_end(result)
   for actor_id in ACTORID_REMOVE
     $game_party.actors.delete($game_party.actors[$game_actors[ACTOR_ID]])
   end
   old_battle_end(result)
 end
end

This should work fine.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...