Messing with Scene_Battle

● ARCHIVED · READ-ONLY
Started by Setix 6 posts View original ↗
  1. Hi guys,

    As I'm using Jet10985's simple Side-View battle system I've had to attempt to make a few changes in order to make it look like my characters are not standing on a wall:



    My solution to this, I figured was to find a way to put all the menus that appear at the bottom, at the top and to push the characters down.

    However, upon trying this by changing 

    #-------------------------------------------------------------------------- # * Create Status Window #-------------------------------------------------------------------------- def create_status_window @status_window = Window_BattleStatus.new @status_window.x = 128 endto

    #-------------------------------------------------------------------------- # * Create Status Window #-------------------------------------------------------------------------- def create_status_window @status_window = Window_BattleStatus.new @status_window.x = 128 @status_window.y = 50 endthe following happens



    Please advise as to how I fix this problem, I'm slowly making my way through RGSS and am trying to pick it up but there are some things that just confuse the hell out of me.

    I am also using Yanfly's battle engine though I cannot find an instance where it is declared that the window is to be placed at the bottom.

    Cheers guys!
  2. All the .x and .y do is decide on the starting position of the window, relative to where it is created. You will have to find where the window is created to be able to move it to the top. Have you tried ctr+shift+f to find where create_status_window is called?

    Though...I do have a wild idea too. Could you plug in a negative number for .y? Like say -300? That might move it up to the top, though I have no idea if that will even work (it might reject the negative number). If that works, you could offset it by a negative amount to move it to the top.
  3. I never used the jet simple sideview, but I saw it and has an option of the spacing from the characters and such in the script.

    in field options.
  4. bgillisp said:
    All the .x and .y do is decide on the starting position of the window, relative to where it is created. You will have to find where the window is created to be able to move it to the top. Have you tried ctr+shift+f to find where create_status_window is called?

    Though...I do have a wild idea too. Could you plug in a negative number for .y? Like say -300? That might move it up to the top, though I have no idea if that will even work (it might reject the negative number). If that works, you could offset it by a negative amount to move it to the top.
    I actually tried a negative number but forgot to mention! Unfortunately it knocks the window out of orbit and it cannot be seen.

    I will look into create_status_window and report back.

    Edit: Where it is called is in the quoted text above. I've also noticed there is a script called Window_BattleStatus in the Script Editor but I can't see anything to do with location yet again.

    ookami_lord said:
    I never used the jet simple sideview, but I saw it and has an option of the spacing from the characters and such in the script.

    in field options.
    It does have that option, unfortunately with 4 characters if I move them down to where it doesn't look silly my fourth and third characters are hidden by the status menu.
  5. You need to change this:

    Scene_Battle  def create_info_viewport    @info_viewport = Viewport.new    @info_viewport.rect.y = Graphics.height - @status_window.height    @info_viewport.rect.height = @status_window.height    @info_viewport.z = 100    @info_viewport.ox = 64    @status_window.viewport = @info_viewport  endendto this:

    class Scene_Battle  def create_info_viewport    @info_viewport = Viewport.new    @info_viewport.rect.y = 0    @info_viewport.rect.height = @status_window.height    @info_viewport.z = 100    @info_viewport.ox = 64    @status_window.viewport = @info_viewport  endendIf you want to show the Windows at the Top.

    You then need to change the position of the message window to the top too, and need to think about another position for the log window, cause that is at the top normally.

    You would also need to change all the position of the other windows (eg. skill_window)...
  6. Just what I was looking for! With this information I'm sure I can wrangle something out.

    You're a star, thanks for this.