Claimh Side view battle script help [vx]

Hi all I was looking for a way to soup up battles when I came across Claimh's side view battle system. The system works pretty good however it will only show one actor death when ever you are fighting something. (The actor that is shown dead is always the one shown on the bottom right). The deaths for monsters are handled correctly I am guessing that this is because their locations in battle are stored in the data base when the actors are not.

Also I am using RPG maker VX.

The Side View Battle System is controlled by three scripts listed below:

Sideview Motion Exe

Spoiler
#=========================================================================# ¡ VX-RGSS2-6 ƒTƒCƒhƒrƒ…[퓬[MotionExe] [Ver.1.0.1] by Claimh#------------------------------------------------------------------------------# English Translation By: Elemental Crisis [http://www.rpgcrisis.net]#------------------------------------------------------------------------------# This script executes movement controls of the actors.#==============================================================================module SideView#----------------------------------------------------------------------------#-----[Operation Setup]-----# Operation SpeedMOTION_SPEED = 20#-----[Animation Setup]-----# Usual enemy attack animation setup.E_ANIME = {# EnemyID => [Usually atttack and additional attack animations.]1 => [1, 0]}#----------------------------------------------------------------------------#----------------------------------------------------------------------------# Motion Control ModeM_MODE_WAIT = 0 # StandbyM_MODE_MAGI = 1 # AttackM_MODE_DAMG = 2 # Non-Damage AttackM_MODE_WIN = 3 # VictoryM_MODE_ATK1 = 4 # Direct Attack (Approaching)M_MODE_ATK2 = 5 # Direct Attack (Attacking)M_MODE_ATK3 = 6 # Direct Attack (Returning)module_function#--------------------------------------------------------------------------# œ Movement-Zone Calculation#--------------------------------------------------------------------------def set_target_point(attacker, target)case targetwhen Game_Actorbits = Cache.character(target.character_name)attacker.target_x = target.screen_x + (bits.width / 8)attacker.target_y = target.screen_ywhen Game_Enemybits = Cache.battler(target.battler_name, target.battler_hue)attacker.target_x = target.screen_x + (bits.width / 2)attacker.target_y = target.screen_yendendendclass Game_Battlerattr_accessor :move_mode # Operation Mode# 0:Standby 1:Attack 2: Un-useless 3:Victoryattr_accessor :motion_stop # Operation Stop Flag (Under Movement Flag)attr_accessor :target_x # Move Position(x)attr_accessor :target_y # Move Position(y)#--------------------------------------------------------------------------# œ Object Initialization#--------------------------------------------------------------------------alias initialize_sdva_corpse initializedef initializeinitialize_sdva_corpse@move_mode = 0@motion_stop = false@target_x = 0@target_y = 0endend#==============================================================================# ¡ Game_Enemy#==============================================================================class Game_Enemy < Game_Battler#--------------------------------------------------------------------------# œ Attack Animation ID Acquisition#--------------------------------------------------------------------------def atk_animation_idreturn 0 if SideView::E_ANIME[@enemy_id].nil?return SideView::E_ANIME[@enemy_id][0]end#--------------------------------------------------------------------------# œ Attack Animation ID Acquisition (2 Sword Style : 2 Weapons )#--------------------------------------------------------------------------def atk_animation_id2return 0 if SideView::E_ANIME[@enemy_id].nil?return SideView::E_ANIME[@enemy_id][1]endend#==============================================================================# ¡ Sprite_Battler#==============================================================================class Sprite_Battler < Sprite_Base#--------------------------------------------------------------------------# œ Object Initialization# Viewport : View Port# Battler : Battler (Game_Battler)#--------------------------------------------------------------------------alias initialize_sideview initializedef initialize(viewport, battler = nil)initialize_sideview(viewport, battler)init_direct_attackend#--------------------------------------------------------------------------# œ Set Proximity Value For Attack#--------------------------------------------------------------------------def init_direct_attack@direct_attack_cnt = 0@direct_attack_phase = 0@direct_move_cnt = 0@battler_x_plus = 0@battler_y_plus = 0@moving_mode = 0@pattern = 0@direction = 0end#--------------------------------------------------------------------------# œ Frame Renewal [Redefinition]#--------------------------------------------------------------------------def updatesuperif @battler == nilself.bitmap = nilelse@use_sprite = @battler.use_sprite?if @use_spriteself.x = @battler.screen_x + @battler_x_plusself.y = @battler.screen_y + @battler_y_plusself.z = @battler.screen_zupdate_battler_bitmapendsetup_new_effectupdate_effectendend#--------------------------------------------------------------------------# œ Bitmap Transfer Source Renewal#--------------------------------------------------------------------------alias update_battler_bitmap_sideview update_battler_bitmapdef update_battler_bitmapcase @battlerwhen Game_Actorif @battler.character_name != @battler_name [email hidden]_index != @battler_hue@battler_name = @battler.character_name@battler_hue = @battler.character_indexdraw_pre_characterdraw_characterif (@battler.dead? or @battler.hidden)self.opacity = 0endendwhen Game_Enemyif @battler.battler_name != @battler_name [email hidden]_hue != @battler_hue@battler_name = @battler.battler_name@battler_hue = @battler.battler_huedraw_battlerif (@battler.dead? or @battler.hidden)self.opacity = 0endendendmotion_controlend#--------------------------------------------------------------------------# œ Battler Drawing#--------------------------------------------------------------------------def draw_battlerself.bitmap = Cache.battler(@battler_name, @battler_hue)@width = bitmap.width@height = bitmap.heightself.ox = @width / 2self.oy = @heightend#--------------------------------------------------------------------------# œ Pre-Character Drawing [Common]#--------------------------------------------------------------------------def draw_pre_characterself.bitmap = Cache.character(@battler_name)sign = @battler_name[/^[\!\$]./]if sign != nil and sign.include?('$')@width = bitmap.width / 3@height = bitmap.height / 4else@width = bitmap.width / 12@height = bitmap.height / 8endself.ox = @width / 2self.oy = @heightend#--------------------------------------------------------------------------# œ Character Drawing [Common]#--------------------------------------------------------------------------def draw_characterindex = @battler_huepattern = @pattern < 3 ? @pattern : 1sx = (index % 4 * 3 + pattern) * @widthsy = (index / 4 * 4 + (@direction - 2) / 2) * @heightself.src_rect.set(sx, sy, @width, @height)end#--------------------------------------------------------------------------# œ Motion Control#--------------------------------------------------------------------------def motion_control# Memory Operation Mode@moving_mode = @battler.move_mode# Battler Drawingcase @battlerwhen Game_Actor # Actoractor_motion_controlwhen Game_Enemy # Enemyenemy_motion_controlendend#--------------------------------------------------------------------------# œ Motion Control (Actor)#--------------------------------------------------------------------------def actor_motion_control# Operation Changecase @moving_modewhen SideView::M_MODE_WAIT # Standbyinit_direct_attack@battler_x_plus = 0@direction = 4@pattern = 1when SideView::M_MODE_MAGI # Attack@battler_x_plus = -10@direction = 4@pattern = 3when SideView::M_MODE_DAMG # Non-Damage Attack@battler_x_plus = 10@direction = 4@pattern = 3when SideView::M_MODE_WIN # Victory@direction = 2@pattern = 1when SideView::M_MODE_ATK1 # Direct Attack (Approaching)exe_moving_attack_start@end_pos_x = @battler_x_pluswhen SideView::M_MODE_ATK2 # Direct Attack (Attacking)@battler_x_plus = @end_pos_x - 10when SideView::M_MODE_ATK3 # Direct Attack (Returning)exe_moving_attack_endelsep "error:Sprite_Battler>> @moving_mode"enddraw_characterend#--------------------------------------------------------------------------# œ Motion Control (Enemy)#--------------------------------------------------------------------------def enemy_motion_control# Operation Changecase @moving_modewhen SideView::M_MODE_WAIT # Standbyinit_direct_attackwhen SideView::M_MODE_MAGI # Attack@battler_x_plus = 10when SideView::M_MODE_DAMG # Non-Damage Attack@battler_x_plus = -10@shake_flg = truewhen SideView::M_MODE_ATK1 # Direct Attack (Approaching)exe_moving_attack_start@end_pos_x = @battler_x_pluswhen SideView::M_MODE_ATK2 # Direct Attack (Attacking)@battler_x_plus = @end_pos_x + 10when SideView::M_MODE_ATK3 # Direct Attack (Returning)exe_moving_attack_endelsep "error:Sprite_Battler>> @moving_mode", @moving_modeendend#--------------------------------------------------------------------------# œ Proximity Attack Execution Method#--------------------------------------------------------------------------def exe_moving_attack_startreturn unless @battler.motion_stopcase @direct_attack_phasewhen 0 # Start Operation Preparationdiratk_startwhen 1 # Move Operation (Going)diratk_movewhen 2 # After-Movement Waitdiratk_waitendenddef exe_moving_attack_endcase @direct_attack_phasewhen 0 # Attack Operationdiratk_attackwhen 1 # Move Operation (Return)diratk_backwhen 2 # Operation Enddiratk_endendend#--------------------------------------------------------------------------# œ Proximity Attack Execution [Start Operation Preparation]#--------------------------------------------------------------------------def diratk_start# Pose Change@pattern = 1# The number of frames needed is the distance between current position and# target position.pos_x = @battler.target_x - self.xpos_y = @battler.target_y - self.y# Caculation for ammount of frames needed.@direct_move_cnt = @direct_attack_cnt = (pos_x.abs / SideView::MOTION_SPEED).round# NEXT Phase@direct_attack_phase += 1end#--------------------------------------------------------------------------# œ Proximity Attack Execution [Move Operation (Going)]#--------------------------------------------------------------------------def diratk_movecase @battlerwhen Game_Actorx_plus = @widthy_plus = -@height / 4when Game_Enemyx_plus = -@width - 10y_plus = @height / 4end# The next movement location is figured out by the distance between# current position and target position.pos_x = @battler.target_x - self.x + x_pluspos_y = @battler.target_y - self.y + y_plus@battler_x_plus += pos_x / @direct_attack_cnt if @direct_attack_cnt != 0@battler_y_plus += pos_y / @direct_attack_cnt if @direct_attack_cnt != 0# End count@direct_attack_cnt -= 1# Last movement (Insurance: Last correction)if @direct_attack_cnt <= 0@battler_x_plus = @battler.target_x - @battler.screen_x + x_plus@battler_y_plus = @battler.target_y - @battler.screen_y + y_plus# NEXTƒtƒF[ƒY@direct_attack_cnt = 5@direct_attack_phase += 1endend#--------------------------------------------------------------------------# œ Proximity Attack Execution [Attack Operation Return]#--------------------------------------------------------------------------def diratk_wait# End Count@direct_attack_cnt -= 1# Last Movementif @direct_attack_cnt <= 0# Pose Change@pattern = 3# END Phase@direct_attack_phase = [email hidden]_stop = falseendend#--------------------------------------------------------------------------# œ Proximity Attack Execution [Attack Operation Return]#--------------------------------------------------------------------------def diratk_attack# Pose Change@pattern = 1# End Wait Count@direct_attack_cnt = @direct_move_cnt# NEXT Phase@direct_attack_phase += 1end#--------------------------------------------------------------------------# œ Proximity Attack Execution [Move Operation (Return)]#--------------------------------------------------------------------------def diratk_back# The next movement location is figured out by the distance between# current position and target position.pos_x = @battler.screen_x - self.xpos_y = @battler.screen_y - self.y@battler_x_plus += pos_x / @direct_attack_cnt if @direct_attack_cnt != 0@battler_y_plus += pos_y / @direct_attack_cnt if @direct_attack_cnt != 0# End Count@direct_attack_cnt -= 1# Last Movementif @direct_attack_cnt == 0@battler_x_plus = 0@battler_y_plus = 0# NEXT Phase@direct_attack_phase += 1endend#--------------------------------------------------------------------------# œ Proximity attack execution [Operation End]#--------------------------------------------------------------------------def [email hidden]_stop = false# END Phase@direct_attack_phase = 0endend
Sideview Motion Control

Spoiler
#==========================================================================# ¡ VX-RGSS2-6 ƒTƒCƒhƒrƒ…[퓬[MotionCtrl] [Ver.1.0.1] by Claimh#------------------------------------------------------------------------------# English Translation By: Elemental Crisis [http://www.rpgcrisis.net]#------------------------------------------------------------------------------# This script carries out the movement controls of the actors.#==============================================================================#==============================================================================# ¡ Scene_Battle#==============================================================================class Scene_Battle < Scene_Base#--------------------------------------------------------------------------# œ Battle Start Process#--------------------------------------------------------------------------alias process_battle_start_sideview process_battle_startdef process_battle_startfor battler in $game_party.members + $game_troop.membersbattler.move_mode = SideView::M_MODE_WAITendprocess_battle_start_sideviewend#--------------------------------------------------------------------------# œ Victory Process#--------------------------------------------------------------------------alias process_victory_sideview process_victorydef process_victoryfor actor in $game_party.membersactor.move_mode = SideView::M_MODE_WINendprocess_victory_sideviewend#--------------------------------------------------------------------------# œ Wait Until Motion Control Is Finished#--------------------------------------------------------------------------def wait_for_motionwhile @active_battler.motion_stopupdate_basicendend#--------------------------------------------------------------------------# œ Execute Combat Operations: Attack [Redefinition]#--------------------------------------------------------------------------def execute_action_attacktext = sprintf(Vocab:😀oAttack, @active_battler.name)@message_window.add_instant_text(text)targets = @active_battler.action.make_targets#---Enemy attack sound reproduced.if @active_battler.is_a?(Game_Enemy)Sound.play_enemy_attackwait(15, true)end#--- Proximity (Going)SideView.set_target_point(@active_battler, targets[0])@active_battler.move_mode = SideView::M_MODE_ATK1@active_battler.motion_stop = truewait_for_motion#--- Attackwait(5)@active_battler.move_mode = SideView::M_MODE_ATK2#---display_attack_animation(targets)wait(20)for target in targetstarget.attack_effect(@active_battler)display_action_effects(target)end#--- Proximity (Return)@active_battler.move_mode = SideView::M_MODE_ATK3@active_battler.motion_stop = truewait_for_motion#---Waitfor target in targetstarget.move_mode = SideView::M_MODE_WAITend@active_battler.move_mode = SideView::M_MODE_WAIT#---end#--------------------------------------------------------------------------# œ Execute Combat Operations: Skill [Redefinition]#--------------------------------------------------------------------------def execute_action_skillskill = @active_battler.action.skilltext = @active_battler.name + skill.message1@message_window.add_instant_text(text)unless skill.message2.empty?wait(10)@message_window.add_instant_text(skill.message2)end#--- Enemy attack sound reproduced.if @active_battler.is_a?(Game_Enemy)Sound.play_enemy_attackwait(15, true)end#--- Long distance attack.@active_battler.move_mode = SideView::M_MODE_MAGI#---targets = @active_battler.action.make_targetsdisplay_animation(targets, skill.animation_id)@active_battler.mp -= @active_battler.calc_mp_cost(skill)$game_temp.common_event_id = skill.common_event_idfor target in targetstarget.skill_effect(@active_battler, skill)display_action_effects(target, skill)end#---Waitfor target in targetstarget.move_mode = SideView::M_MODE_WAITend@active_battler.move_mode = SideView::M_MODE_WAIT#---end#--------------------------------------------------------------------------# Execute Combat Operations: Item [Redefinition]#--------------------------------------------------------------------------def execute_action_itemitem = @active_battler.action.itemtext = sprintf(Vocab::UseItem, @active_battler.name, item.name)@message_window.add_instant_text(text)#--- Enemy attack sound reproduced.if @active_battler.is_a?(Game_Enemy)Sound.play_enemy_attackwait(15, true)end#--- Long distance attack@active_battler.move_mode = SideView::M_MODE_MAGI#---targets = @active_battler.action.make_targetsdisplay_animation(targets, item.animation_id)$game_party.consume_item(item)$game_temp.common_event_id = item.common_event_idfor target in targetstarget.item_effect(@active_battler, item)display_action_effects(target, item)end#---Waitfor target in targetstarget.move_mode = SideView::M_MODE_WAITend@active_battler.move_mode = SideView::M_MODE_WAIT#---end#--------------------------------------------------------------------------# œ Attack Animation Display [Redefinition]# Targets : Object's Arrangement#--------------------------------------------------------------------------# yChanged partz# Enemy sound effect is changed so it can be used in each phase of operation.# It changes so that the attack animation of an enemy can be displayed.#--------------------------------------------------------------------------def display_attack_animation(targets)display_normal_animation(targets, @active_battler.atk_animation_id, false)display_normal_animation(targets, @active_battler.atk_animation_id2, true)wait_for_animationend#--------------------------------------------------------------------------# œ HP Damage display [Redefinition]# Target : Candidate# object : Skill or item#--------------------------------------------------------------------------def display_hp_damage(target, obj = nil)if target.hp_damage == 0 # No damagereturn if obj != nil and obj.damage_to_mpreturn if obj != nil and obj.base_damage == 0fmt = target.actor? ? Vocab::ActorNoDamage : Vocab::EnemyNoDamagetext = sprintf(fmt, target.name)elsif target.absorbed # Absorptionfmt = target.actor? ? Vocab::ActorDrain : Vocab::EnemyDraintext = sprintf(fmt, target.name, Vocab::hp, target.hp_damage)elsif target.hp_damage > 0 # Damageif target.actor?text = sprintf(Vocab::ActorDamage, target.name, target.hp_damage)Sound.play_actor_damage$game_troop.screen.start_shake(5, 5, 10)target.blink = true # Only adds hereelsetext = sprintf(Vocab::EnemyDamage, target.name, target.hp_damage)Sound.play_enemy_damagetarget.blink = trueendelse # Recoveryfmt = target.actor? ? Vocab::ActorRecovery : Vocab::EnemyRecoverytext = sprintf(fmt, target.name, Vocab::hp, -target.hp_damage)Sound.play_recoveryend@message_window.add_instant_text(text)wait(30)endend
Sideview Formation

Spoiler
#==============================================================================# ■ VX-RGSS2-6 サイドビュー戦闘[Formation] [Ver.1.0.1] by Claimh#------------------------------------------------------------------------------# English Translation By: Elemental Crisis [http://www.rpgcrisis.net]#------------------------------------------------------------------------------# Actor location [Formation]# The same amount of damage will be given regardless of formation setup.#==============================================================================module Battle_Formation#------------------------------------------------------------------------------# [Formation Setup]# $game_system.battle_formation = Formation ID# Its possible to change the formation (Even an event script is possible).FORM = {# Formation ID => [[Member 1 x、y], [Member2 x, y],# [Member 3 x, y], [Member 4 x, y]]0 => [[380,150], [400, 230], [460, 170], [480, 250]]}#------------------------------------------------------------------------------end#==============================================================================# ■ Game_System#==============================================================================class Game_Systemattr_accessor :battle_formation # Formation ID#--------------------------------------------------------------------------# ● オブジェクト初期化#--------------------------------------------------------------------------alias init_game_system initializedef initializeinit_game_system@battle_formation = 0 # Initial formationendend#==============================================================================# ■ Game_Actor#==============================================================================class Game_Actor < Game_Battler#--------------------------------------------------------------------------# ● Are sprites used? [Redefinition]#--------------------------------------------------------------------------def use_sprite?return trueend#--------------------------------------------------------------------------# ● Battle Screen Acquiring X Coordinate#--------------------------------------------------------------------------def screen_xreturn Battle_Formation::FORM[$game_system.battle_formation][self.index][0]end#--------------------------------------------------------------------------# ● Battle Screen Acquiring Y Coordinate#--------------------------------------------------------------------------def screen_yreturn Battle_Formation::FORM[$game_system.battle_formation][self.index][1]end#--------------------------------------------------------------------------# ● Battle Screen Acquiring Z Coordinate#--------------------------------------------------------------------------def screen_zbitmap = Cache.character(self.character_name)# Height + Y Coordinatesreturn screen_y + bitmap.height / 4endend#==============================================================================# ■ Game_Enemy#==============================================================================class Game_Enemy < Game_Battler#--------------------------------------------------------------------------# ● Battle Screen Acquiring Z Coordinate [Redefinition]#--------------------------------------------------------------------------def screen_zbitmap = Cache.battler(self.battler_name, self.battler_hue)# Height + Y Coordinatesreturn screen_y + bitmap.heightendend
I have read through all three scripts but I have yet to figure out why this is happening.

I think it may have something to do with the Bitmap Transfer Source Renewal section of the Sideview Motion Exe script but I am not 100% positive.

(Sorry the scripts weren't indented they were like that when I got them if anyone wants them indented I will do that and post them)

Original thread: https://forums.rpgmakerweb.com/threads/claimh-side-view-battle-script-help-vx.18765/