This scriptlet allows you to prevent a certain hero from being present during battles.
This feature can also be disabled at any given time.
There are separate calls for party members and individual heroes. This lets you include or exclude any hero no matter if he has ever joined the party or has recently left it. How convenient that is, don't you agree?
The Script
Ruby:
# * Non Kombatant VX * #
# Scripter : Kyonides Arkanthes
# v0.3.0 - 2024-12-29
# This scriptlet allows you to prevent a certain hero from being present during
# battles. This feature can also be disabled at any given time.
# There are separate calls for party members and individual heroes. This lets
# you include or exclude any hero no matter if he has ever joined the party or
# has recently left it.
# Warning: Game_Party#members method has been aliased.
# * Script Calls * #
# - Set Party Member as NPC - Disabling him during battles
# $game_party.actor_as_npc(Index)
# - Set Party Single Hero as NPC - Disabling him during battles
# $game_actors[ID].is_npc = true
# - Set Party Member as Combatant - Enabling him during battles
# $game_party.npc_as_actor(Index)
# - Set Hero as Combatant - Enabling him during battles
# $game_actors[ID].is_npc = false
class Game_BattleAction
alias :kyon_non_kombat_gm_bta_dc_rand_tgt :decide_random_target
alias :kyon_non_kombat_gm_bta_dc_last_tgt :decide_last_target