#==========================================================================
# ** 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, 480 - SG_CenterPlayer_StatusHT, 160, SG_CenterPlayer_StatusHT)
when 2
super(160, 480 - SG_CenterPlayer_StatusHT, 320, SG_CenterPlayer_StatusHT)
when 3
super(80, 480 - SG_CenterPlayer_StatusHT, 480, 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)
@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
when 2
@actor_command_window.x += 160
when 3
@actor_command_window.x += 80
end
end
end
#--------------------------------------------------------------------------
end