RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Battle menu on top of the screen [VXA]

0 Members and 3 Guests are viewing this topic.

**
Rep: +0/-0Level 58
RMRK Junior
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.




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
« Last Edit: September 23, 2012, 09:28:46 PM by luxer19 »

*
*crack*
Rep:
Level 64
2012 Best Newbie2012 Most Unsung MemberFor frequently finding and reporting spam and spam bots
Code: [Select]
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
« Last Edit: September 23, 2012, 06:38:59 PM by D&P3 »
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

**
Rep: +0/-0Level 58
RMRK Junior
Woah! Thanks, that's very usefull! Thought, I'm having another problem.



The skill and item windows don't work, I can only see the description of the Item/Skill.

*
*crack*
Rep:
Level 64
2012 Best Newbie2012 Most Unsung MemberFor frequently finding and reporting spam and spam bots
My apologies for that, I finding lack of time to thoroughly test things :\

Code: [Select]
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
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

**
Rep: +0/-0Level 58
RMRK Junior
Woah, thanks man, it's awesome.

*
*crack*
Rep:
Level 64
2012 Best Newbie2012 Most Unsung MemberFor frequently finding and reporting spam and spam bots
Much obliged :)
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

*
*crack*
Rep:
Level 64
2012 Best Newbie2012 Most Unsung MemberFor frequently finding and reporting spam and spam bots
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

Code: [Select]
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
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3