-
Hello, people.
I was looking at Jet's Viewed Battle System (Wich by the way is the best Side Battle System ever.) and I discovered that I could change character's position in battle. I was very happy, because most of the Side battle systems don't do this, and I couldn't use VXA battlerbacks in a logic way. Now... I have a small problem.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimageshack.us%2Fa%2Fimg703%2F1217%2Fsinttulo2vc.jpg&hash=a6b6547f136d704d071616ac8711e5da5cb23883) (http://imageshack.us/photo/my-images/703/sinttulo2vc.jpg/)
So, as you can see, the battle menu (Or window, or whatever, the thing with the life/mana/tp bars, commands, ect) is hiding one of the characters. So I thought it would be nice if I could put that window on top of the screen instead of botton. Then I remembered I didn't know how to, so I came here looking for help.
Anyone knows how to fix my problem?
Thanks for reading.
LuX
-
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Create Information Display Viewport
#--------------------------------------------------------------------------
alias putwindowabove_fjshr3 create_info_viewport
def create_info_viewport
# Call Original Method
putwindowabove_fjshr3
@info_viewport.rect.y = 0
@status_window.viewport = @info_viewport
end
end
-
Woah! Thanks, that's very usefull! Thought, I'm having another problem.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimageshack.us%2Fa%2Fimg211%2F3073%2Fsinttulo2pg.jpg&hash=c3d93ef37992113824556e3cf9f762b8fc441807) (http://imageshack.us/photo/my-images/211/sinttulo2pg.jpg/)
The skill and item windows don't work, I can only see the description of the Item/Skill.
-
My apologies for that, I finding lack of time to thoroughly test things :\
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Create Information Display Viewport
#--------------------------------------------------------------------------
alias putwindowabove_civ_fjshr3 create_info_viewport
def create_info_viewport
# Call Original Method
putwindowabove_civ_fjshr3
@info_viewport.rect.y = 0
@status_window.viewport = @info_viewport
end
end
#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
# This window is for selecting skills to use in the battle window.
#==============================================================================
class Window_BattleSkill < Window_SkillList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = (info_viewport.rect.height + help_window.height)
super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
end
#==============================================================================
# ** Window_BattleItem
#------------------------------------------------------------------------------
# This window is for selecting items to use in the battle window.
#==============================================================================
class Window_BattleItem < Window_ItemList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = (info_viewport.rect.height + help_window.height)
super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
end
#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
# This window shows skill and item explanations along with actor status.
#==============================================================================
class Window_Help < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(line_number = 2)
super(0, 120, Graphics.width, fitting_height(line_number))
end
end
-
Woah, thanks man, it's awesome.
-
Much obliged :)
-
I just noticed that this script also affected the help window in your loading screen and other scenes when you weren't in battle.
Admittedly I find it looking rather cool having the help box display between selection and items, but you however might not.
So if you've found that and it is bothering you, this will fix it
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Create Information Display Viewport
#--------------------------------------------------------------------------
alias putwindowabove_civ_fjshr3 create_info_viewport
def create_info_viewport
# Call Original Method
putwindowabove_civ_fjshr3
@info_viewport.rect.y = 0
@status_window.viewport = @info_viewport
end
end
#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
# This window is for selecting skills to use in the battle window.
#==============================================================================
class Window_BattleSkill < Window_SkillList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = (info_viewport.rect.height + help_window.height)
super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
end
#==============================================================================
# ** Window_BattleItem
#------------------------------------------------------------------------------
# This window is for selecting items to use in the battle window.
#==============================================================================
class Window_BattleItem < Window_ItemList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = (info_viewport.rect.height + help_window.height)
super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
end
#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
# This window shows skill and item explanations along with actor status.
#==============================================================================
class Window_Help < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(line_number = 2)
if SceneManager.scene_is?(Scene_Battle)
super(0, 120, Graphics.width, fitting_height(line_number))
else
super(0, 0, Graphics.width, fitting_height(line_number))
end
end
end