Hello, everyone~ Another day, another thread~ xD Today, I, after some searching the net, managed to allow my Necromancer, Ryana, to summon a zombie (another Actor) in battle. And, thanks to a post by Shaz, managed to get that zombie to be removed after battle without having to copy&pasta the life out of my Troops events. Here's the main problem:
I want to make it so that, when I'm selecting Ryana's summon skill, only an empty Actor slot can be selected. Reason for this is that it doesn't make sense for a summon to be used on an actor, then another actor appears. Doing this all causes an unsightly "Failed" to appear, THEN my zombie appears.
Any help is appreciated~
Thanks~
Original thread with Shaz's post: http://forums.rpgmakerweb.com/index.php?/topic/12224-is-there-a-way-to-remove-a-character-from-party-at-end-of-battle/
*Note
*Bonus
[Edit] If I can add one more thing, how can I make a skill unusable in cases like this? Like, I summon my zombie, and so long as it's alive/on the field, I can't use that summoning skill again.
I want to make it so that, when I'm selecting Ryana's summon skill, only an empty Actor slot can be selected. Reason for this is that it doesn't make sense for a summon to be used on an actor, then another actor appears. Doing this all causes an unsightly "Failed" to appear, THEN my zombie appears.
Any help is appreciated~
Thanks~
Original thread with Shaz's post: http://forums.rpgmakerweb.com/index.php?/topic/12224-is-there-a-way-to-remove-a-character-from-party-at-end-of-battle/
*Note
Shaz says, "You could modify the Scene_Battle 1 script, battle_end method. Somewhere prior to removing the battle states, do a $game_party.remove_actor(id)." Where you actually go is Game_Battlers and look for: #-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear endIf your summon is an Actor like mine, put $game_party.remove_actor(id) above "remove_battle_states" like this:
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear end
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear end
I finally figured out how to turn off switches after battle! (I'm a n00b, k?) This can be done in Game_Battler as well:
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) #If you have a summoned actor remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear endWhat you want to do is add $game_switches, like this:
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) $game_switches[switch_id] = false #ex. $game_switches[9] = false remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear endHope this helps~
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) #If you have a summoned actor remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear endWhat you want to do is add $game_switches, like this:
#-------------------------------------------------------------------------- # * Processing at End of Battle #-------------------------------------------------------------------------- def on_battle_end @result.clear $game_party.remove_actor(id) $game_switches[switch_id] = false #ex. $game_switches[9] = false remove_battle_states remove_all_buffs clear_actions clear_tp unless preserve_tp? appear endHope this helps~

