The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: DoctorTodd on December 04, 2011, 06:55:39 AM

Title: [VX] [RESOLVED] Spin add-on edit
Post by: DoctorTodd on December 04, 2011, 06:55:39 AM
One problem I'm facing right now is the location of the HUD in tankentia SBS, as well as the dialogue box. I'm usally able to fix these things but I can't figure this one out. I attached two photos showing what I mean as well as the script. It will appear normal for you but I'm using 640 by 480 resolution unlike the default, so I added my resolution changer. I also added the required graphic. I think it can be changed through here but I could be wrong.  Here's the battle system script: http://www.rpgrevolution.com/forums/?showtopic=13485 (http://www.rpgrevolution.com/forums/?showtopic=13485)

Edit: I some how to managed to screw up completely and post this is in the wrong section, could some one move it to VX request.
Title: Re: [REQUEST] Spin add-on edit
Post by: DoctorTodd on December 05, 2011, 09:50:06 PM
BUMP once again could a mod move this to VX requests, I accidentally posted it here. 
Title: Re: [REQUEST] Spin add-on edit
Post by: TDS on December 06, 2011, 05:50:25 PM
If you're trying to change the position of the HUD and battle message to appear at the bottom, this should be able to do it.

Code: [Select]
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Information Display Viewport
  #--------------------------------------------------------------------------
  def create_info_viewport
    @info_viewport = Viewport.new(0, 352, 544, 128)
    @info_viewport.z = 100
    @status_window = Window_BattleStatus.new
    @party_command_window = Window_PartyCommand.new
    @actor_command_window = Window_ActorCommand.new
    @status_window.viewport = @info_viewport
    @party_command_window.viewport = @info_viewport
    @actor_command_window.viewport = @info_viewport
    @status_window.x = 128
    @actor_command_window.x = 544
    @info_viewport.visible = false
  end
end


#==============================================================================
# ** Window_BattleMessage
#------------------------------------------------------------------------------
#  Message window displayed during battle. In addition to the normal message
# window functions, it also has a battle progress narration function.
#==============================================================================

class Window_BattleMessage < Window_Message
  #--------------------------------------------------------------------------
  # * Set Window Background and Position
  #--------------------------------------------------------------------------
  def reset_window
    @background = $game_message.background
    @position = $game_message.position
    if @background == 0   # Normal window
      self.opacity = 255
    else                  # Dim Background and Make it Transparent
      self.opacity = 0
    end
    case @position
    when 0  # Top
      self.y = 0
      @gold_window.y = 360
    when 1  # Middle
      self.y = 144
      @gold_window.y = 0
    when 2  # Bottom
      self.y = 354
      @gold_window.y = 0
    end
  end
end

Just put it below your battle system script and it should work.

If it does not work or you want something changed let me know and I'll see what I can do about it.

Have a nice day.
Title: Re: [REQUEST] Spin add-on edit
Post by: DoctorTodd on December 06, 2011, 09:44:52 PM
Thanks this works perfectly.