查看: 1596|回复: 7

[已经解决] 怎么把技能和状态去掉

[复制链接]
梦石
0
星屑
195
在线时间
330 小时
注册时间
2011-8-3
回帖
35
发表于 2013-7-11 15:38:24 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
就是在菜单中把这两个去掉,只剩下装备和存档这些

点评

有用了吗?  发表于 2013-7-13 20:19
梦石
0
星屑
51
在线时间
454 小时
注册时间
2012-7-31
回帖
536
发表于 2013-7-11 18:13:27 | 显示全部楼层
打开脚本框,然后
QQ截图20130711173632.png

点评

可以了,谢谢  发表于 2013-7-11 20:52

评分

参与人数 1星屑 +100 收起 理由
Luciffer + 100 认可答案

查看全部评分

【我是ABC君,也可以叫我“银行君”“字母君”……】
《斗罗大陆—火焰篇章》重新起航!!
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
80 小时
注册时间
2013-7-5
回帖
328
发表于 2013-7-11 17:25:40 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
195
在线时间
330 小时
注册时间
2011-8-3
回帖
35
 楼主| 发表于 2013-7-13 13:48:00 | 显示全部楼层
本帖最后由 qq1049323397 于 2013-7-13 13:55 编辑
abc1999611 发表于 2013-7-11 18:13
打开脚本框,然后


那个,技能和状态确实没了,可装备画面变成了技能画面,该怎么弄?
还有,游戏结束也变成了状态画面=。=
回复

使用道具 举报

梦石
0
星屑
51
在线时间
454 小时
注册时间
2012-7-31
回帖
536
发表于 2013-7-13 19:07:19 | 显示全部楼层
本帖最后由 abc1999611 于 2013-7-13 19:10 编辑
qq1049323397 发表于 2013-7-13 13:48
那个,技能和状态确实没了,可装备画面变成了技能画面,该怎么弄?
还有,游戏结束也变成了状态画面=。= ...

[pre lang="ruby" line="1"]#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
#  处理菜单画面的类。
#==============================================================================

class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #     menu_index : 命令窗口光标初始位置
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  #--------------------------------------------------------------------------
  # ● 开始处理
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @gold_window = Window_Gold.new(0, 360)
    @status_window = Window_MenuStatus.new(160, 0)
  end
  #--------------------------------------------------------------------------
  # ● 结束处理
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    @command_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
  #--------------------------------------------------------------------------
  # ● 更新画面
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @command_window.update
    @gold_window.update
    @status_window.update
    if @command_window.active
      update_command_selection
    elsif @status_window.active
      update_actor_selection
    end
  end
  #--------------------------------------------------------------------------
  # ● 生成命令窗口
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Vocab::item
    s2 = Vocab::equip
    s3 = Vocab::save
    s4 = Vocab::game_end
    @command_window = Window_Command.new(160, [s1, s2, s3, s4])
    @command_window.index = @menu_index
    if $game_party.members.size == 0          # 如果队伍为空
      @command_window.draw_item(0, false)     # 无效化物品选项
      @command_window.draw_item(1, false)     # 无效化技能选项
      @command_window.draw_item(2, false)     # 无效化装备选项
      @command_window.draw_item(3, false)     # 无效化状态选项
    end
    if $game_system.save_disabled             # 如果禁止存档
      @command_window.draw_item(4, false)     # 无效化存档选项
    end
  end
  #--------------------------------------------------------------------------
  # ● 更新命令窗口
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 4
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 4
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0      #  物品
        $scene = Scene_Item.new
      when 1      #  装备
        start_actor_selection
      when 2      #  存档        
        $scene = Scene_File.new(true, false, false)
      when 3      #  结束游戏
        $scene = Scene_End.new
      end
    end
  end
  #--------------------------------------------------------------------------
  # ● 角色选择开始
  #--------------------------------------------------------------------------
  def start_actor_selection
    @command_window.active = false
    @status_window.active = true
    if $game_party.last_actor_index < @status_window.item_max
      @status_window.index = $game_party.last_actor_index
    else
      @status_window.index = 0
    end
  end
  #--------------------------------------------------------------------------
  # ● 角色选择结束
  #--------------------------------------------------------------------------
  def end_actor_selection
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
  end
  #--------------------------------------------------------------------------
  # ● 角色选择更新
  #--------------------------------------------------------------------------
  def update_actor_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_actor_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1  # 装备
        $scene = Scene_Equip.new(@status_window.index)
      when 2  # 技能
        $scene = Scene_Skill.new(@status_window.index)
      when 3  # 状态
        $scene = Scene_Status.new(@status_window.index)
      end
    end
  end
end
[/pre]
替换你自己的Scene_Menu,应该可以了吧。我也不太会脚本……

【我是ABC君,也可以叫我“银行君”“字母君”……】
《斗罗大陆—火焰篇章》重新起航!!
回复

使用道具 举报

梦石
0
星屑
51
在线时间
454 小时
注册时间
2012-7-31
回帖
536
发表于 2013-7-13 20:18:12 | 显示全部楼层
其实就是增加这个70行这一处的修改,
[pre lang="ruby" line="70"]  #--------------------------------------------------------------------------
  # ● 更新命令窗口
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_party.members.size == 0 and @command_window.index < 4
        Sound.play_buzzer
        return
      elsif $game_system.save_disabled and @command_window.index == 4
        Sound.play_buzzer
        return
      end
      Sound.play_decision
      case @command_window.index
      when 0      #  物品
        $scene = Scene_Item.new
      when 1      #  装备
        start_actor_selection
      when 2      #  存档        
        $scene = Scene_File.new(true, false, false)
      when 3      #  结束游戏
        $scene = Scene_End.new
      end
    end
  end[/pre]
还有118行这一块
[pre lang="ruby" line="118"] #--------------------------------------------------------------------------
  # ● 角色选择更新
  #--------------------------------------------------------------------------
  def update_actor_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_actor_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1  # 装备
        $scene = Scene_Equip.new(@status_window.index)
      when 2  # 技能
        $scene = Scene_Skill.new(@status_window.index)
      when 3  # 状态
        $scene = Scene_Status.new(@status_window.index)
      end
    end
  end
end[/pre]

评分

参与人数 1星屑 +60 收起 理由
Luciffer + 60 辛苦费

查看全部评分

【我是ABC君,也可以叫我“银行君”“字母君”……】
《斗罗大陆—火焰篇章》重新起航!!
回复

使用道具 举报

梦石
0
星屑
195
在线时间
330 小时
注册时间
2011-8-3
回帖
35
 楼主| 发表于 2013-7-14 08:44:09 | 显示全部楼层
abc1999611 发表于 2013-7-13 20:18
其实就是增加这个70行这一处的修改,
  #-------------------------------------------------------------- ...

{:2_270:} 那个,你给的这方法还是没用,不过我已经自己解决了,谢谢你的帮助
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部