RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RPGVXA] Character in party, but will not join battle.

Started by AbsoluteIce, November 28, 2012, 05:44:41 AM

0 Members and 1 Guest are viewing this topic.

AbsoluteIce

Is there any way to put the first actor in the party, but he's the only that will not join the random battles/any battles at all?
なんでやねん

D&P3

Like pokemon? Yes but not via eventing unless you want all of your battles to be completely evented/scripted.
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

AbsoluteIce

Quote from: D&P3 on November 28, 2012, 07:06:05 AM
Like pokemon? Yes but not via eventing unless you want all of your battles to be completely evented/scripted.
Yeah. Problem is I can't seem to find a script, nor how to event something like this.   :V
なんでやねん

Mangomight

Aint much you can't do with scripting :-)

This code would do what you said, for VX atleast, probably for Ace too, if they haven't changed things around too much, I doubt it though.
#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
#  This class handles the party. It includes information on amount of gold
# and items. The instance of this class is referenced by $game_party.
#==============================================================================

class Game_Party
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :actors # Define read attribute for Actors
end 

#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  alias remove_actor_temp_start start
  def start
    $game_party.remove_actor(1)
    # Run original method
    remove_actor_temp_start
  end 
  #--------------------------------------------------------------------------
  # * End Battle
  #--------------------------------------------------------------------------
  alias mango_btle_end battle_end
  def battle_end(result)
    # Run original method
    mango_btle_end (result)
    # Insert the removed actor in the first position/index
    $game_party.actors.unshift(1)
    $game_player.refresh
  end
end