懒之圣帝 发表于 2012-8-21 08:40:23

VA用2000战斗系统1.03

本帖最后由 懒之圣帝 于 2012-8-27 09:19 编辑

更新至1.03版=begin
RM2000Battlesystem 1.03by 懒之圣帝
注:由于status_window的openness会影响message_window,所以不能取消open,close
=end
class Scene_Battle < Scene_Base
alias update_info_viewport_2000 update_info_viewport
def update_info_viewport
    update_info_viewport_2000
    move_info_viewport(128)if BattleManager.in_turn?
end
alias create_message_window_2000 create_message_window
def create_message_window
    create_message_window_2000
    @message_window.back_opacity = 255
    @message_window.openness = 255
end
alias create_log_window_2000 create_log_window
def create_log_window
    create_log_window_2000
    @log_window.y = Graphics.height - @log_window.height
    @log_window.opacity = 255
    @log_window.back_opacity = 255
    @log_window.visible = false
end
alias create_status_window_2000 create_status_window
def create_status_window
    create_status_window_2000
    @status_window.back_opacity = 255
end
alias create_party_command_window_2000 create_party_command_window
def create_party_command_window
    create_party_command_window_2000
    @party_command_window.back_opacity = 255
    @party_command_window.openness = 255
end
alias create_actor_command_window_2000 create_actor_command_window
def create_actor_command_window
    create_actor_command_window_2000
    @actor_command_window.back_opacity = 255
    @actor_command_window.openness = 255
end
alias create_help_window_2000 create_help_window
def create_help_window
    create_help_window_2000
    @help_window.back_opacity = 255
end
alias create_skill_window_2000 create_skill_window
def create_skill_window
    create_skill_window_2000
    @skill_window.y = @info_viewport.rect.y
    @skill_window.height = @status_window.height
    @skill_window.back_opacity = 255
end
alias create_item_window_2000 create_item_window
def create_item_window
    create_item_window_2000
    @item_window.y = @info_viewport.rect.y
    @item_window.height = @status_window.height
    @item_window.back_opacity = 255
end
alias create_enemy_window_2000 create_enemy_window
def create_enemy_window
    create_enemy_window_2000
    @enemy_window.width /= 1
    @enemy_window.back_opacity = 255
end
alias create_actor_window_2000 create_actor_window
def create_actor_window
    create_actor_window_2000
    @actor_window.back_opacity = 255
end
end
#--------------可能冲突部分----------------
class Window_BattleEnemy < Window_Selectable
def window_width
    Graphics.width - 300
end
def col_max
    return 1
end
def show
    if @info_viewport
      self.x = 0
      @info_viewport.rect.width = Graphics.width
      @info_viewport.rect.x += width
      @info_viewport.ox += width
      select(0)
    end
    super
end
def hide
    @info_viewport.rect.width = Graphics.width if @info_viewport
    @info_viewport.rect.x -= width
    @info_viewport.ox -= width
    super
end
end
class Window_BattleActor < Window_BattleStatus
def show
    if @info_viewport
      self.x = 0
      @info_viewport.rect.width = Graphics.width
      @info_viewport.rect.x += width
      @info_viewport.ox += width
      select(0)
    end
    super
end
def hide
    @info_viewport.rect.width = Graphics.width if @info_viewport
    @info_viewport.rect.x -= width
    @info_viewport.ox -= width
    super
end
end
class Window_BattleLog < Window_Selectable
def max_line_number
    return 4
end
def back_opacity
    return 0
end
alias add_text_2000 add_text
def add_text(text)
    add_text_2000(text)
    self.visible = true
end
alias wait_and_clear_2000 wait_and_clear
def wait_and_clear
    wait_and_clear_2000
    self.visible = false
end
end
#--------------可能冲突部分完----------------

懒之圣帝 发表于 2012-8-21 12:31:09

刚刚没有显示信息的说。

Sonic1997 发表于 2012-8-21 12:51:05

2000的战斗系统貌似不错的呢~
有空下一个><
准备睡觉了=-=
页: [1]
查看完整版本: VA用2000战斗系统1.03