Kain Nobel
Member
Player Swap Dead Actor
Version: 2.5
By: Kain Nobel
Introduction
Short and simple, if your lead character dies it'll swap to the next living character in their place.
Script
Instructions
The usual song 'n dance... place below 'Scene_Debug'/'SDK' if using and above 'main'
Compatibility
Should be compatible with almost anything, most likely to encounter some kinda conflict if you use a special party script which locks characters into a certain position in the party.
Author's Notes
If you need anything modified to work with your party script, you'll have to PM me because I'm not going to be watching this topic.
Terms and Conditions
Free to use in any game, I don't care if you credit me for this one.
Version: 2.5
By: Kain Nobel
Introduction
Short and simple, if your lead character dies it'll swap to the next living character in their place.
Script
Code:
#===============================================================================
# ** Player : Swap Dead Actor
#===============================================================================
Â
#-------------------------------------------------------------------------------
# * SDK Log
#-------------------------------------------------------------------------------
SDK.log('Player.SwapDeadActor', 'Kain Nobel ©', 2.5, '12.10.2008')
#-------------------------------------------------------------------------------
# * SDK Enabled Test : BEGIN
#-------------------------------------------------------------------------------
if SDK.enabled?('Player.SwapDeadActor')
Â
#===============================================================================
# ** Scene_Map
#===============================================================================
Â
class Scene_Map < SDK::Scene_Base
 #-----------------------------------------------------------------------------
 # * Alias Listings
 #-----------------------------------------------------------------------------
 alias_method :swap_dead_leader_scene_map_update, :update
 #-----------------------------------------------------------------------------
 # * Update
 #-----------------------------------------------------------------------------
 def update
  swap_dead_leader_scene_map_update
  unless $game_party.actors.empty?
   if ($game_party.actors[0].hp).zero?
    unless $game_party.all_dead?
     $game_party.actors << $game_party.actors.shift
     $game_player.refresh
    else ; $game_temp.gameover = true
    end
   end   Â
  end
 end
end
Â
#-------------------------------------------------------------------------------
# * SDK Enabled Test : END
#-------------------------------------------------------------------------------
end
Instructions
The usual song 'n dance... place below 'Scene_Debug'/'SDK' if using and above 'main'
Compatibility
Should be compatible with almost anything, most likely to encounter some kinda conflict if you use a special party script which locks characters into a certain position in the party.
Author's Notes
If you need anything modified to work with your party script, you'll have to PM me because I'm not going to be watching this topic.
Terms and Conditions
Free to use in any game, I don't care if you credit me for this one.