#==========================================================================
# ** SG Center Player Group
#==========================================================================
# sandgolem
# Version 1
# 2.07.06
#==========================================================================
SG_CenterPlayer_StatusHT = 160
SG_CenterPlayer_StatusBg = 255
#==========================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts, and the SDK if you're using it.
#
# Have problems? Official topic:
# http://forums.gamebaker.com/showthread.php?t=144
#
#==========================================================================
begin
SDK.log('SG Center Player Group', 'sandgolem', 1, '2.07.06')
if SDK.state('SG Center Player Group') != true
@sg_centerpgroup_disabled = true
end
rescue
end
if !@sg_centerpgroup_disabled
#--------------------------------------------------------------------------
class Window_BattleStatus < Window_Base
def initialize
case $game_party.actors.size
when 1
super(240 - 16, 480 - SG_CenterPlayer_StatusHT, 160 + 32, SG_CenterPlayer_StatusHT)
when 2
super(160 - 16, 480 - SG_CenterPlayer_StatusHT, 320 + 32, SG_CenterPlayer_StatusHT)
when 3
super(80 - 16, 480 - SG_CenterPlayer_StatusHT, 480 + 32, SG_CenterPlayer_StatusHT)
when 4
super(0, 480 - SG_CenterPlayer_StatusHT, 640, SG_CenterPlayer_StatusHT)
end
self.opacity = SG_CenterPlayer_StatusBg
self.contents = Bitmap.new(width - 32, height - 32)
if $fontface != nil
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
elsif $defaultfonttype != nil
self.contents.font.name = $defaultfonttype
self.contents.font.size = $defaultfontsize
end
@level_up_flags = [false, false, false, false]
refresh
end
end
class Game_Actor
alias sandgolem_centerpgroup_actor_scrnx screen_x
def screen_x
sg_temp = sandgolem_centerpgroup_actor_scrnx
case $game_party.actors.size
when 1
sg_temp += 240
when 2
sg_temp += 160
when 3
sg_temp += 80
end
return sg_temp
end
end
class Scene_Battle
attr_accessor :status_window
alias sandgolem_centerpgroup_battle_ph3scw phase3_setup_command_window
def phase3_setup_command_window
sandgolem_centerpgroup_battle_ph3scw
case $game_party.actors.size
when 1
@actor_command_window.x += 240 - 16
when 2
@actor_command_window.x += 160 - 16
when 3
@actor_command_window.x += 80 - 16
end
end
end
#--------------------------------------------------------------------------
end
Try this code instead.