赞 | 1 |
VIP | 0 |
好人卡 | 11 |
积分 | 0 |
经验 | 26243 |
最后登录 | 2014-8-4 |
在线时间 | 841 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 48
- 在线时间
- 841 小时
- 注册时间
- 2010-8-11
- 帖子
- 1135
|
- #============================================================================
- # By 945127391
- # 用法:在Equip_Hide_Switch_ID常数里设定控制是否隐藏的开关ID
- # 打开Equip_Hide_Switch_ID号开关,隐藏装备选项
- # 关闭Equip_Hide_Switch_ID号开关,显示装备选项
- #============================================================================
- # 设定控制是否隐藏的开关ID
- Equip_Hide_Switch_ID = 1
- # 下面的不用理
- class Scene_Menu < Scene_Base
- #--------------------------------------------------------------------------
- # ● 生成命令窗口
- #--------------------------------------------------------------------------
- def create_command_window
- s1 = Vocab::item
- s2 = Vocab::skill
- s3 = Vocab::equip
- s4 = Vocab::status
- s5 = Vocab::save
- s6 = Vocab::game_end
- if $game_switches[Equip_Hide_Switch_ID]
- @command_window = Window_Command.new(160, [s1, s2, s4, s5, s6])
- @command_window.index = @menu_index - (@menu_index >= 2 ? 1 : 0)
- else @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
- @command_window.index = @menu_index
- end
- if $game_party.members.size == 0 # 如果队伍为空
- @command_window.draw_item(0, false) # 无效化物品选项
- @command_window.draw_item(1, false) # 无效化技能选项
- @command_window.draw_item(2, false) unless $game_switches[0] # 无效化装备选项
- @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
- if $game_switches[Equip_Hide_Switch_ID]
- case @command_window.index
- when 0 # 物品
- $scene = Scene_Item.new
- when 1,2 # 技能、装备、状态
- start_actor_selection
- when 3 # 存档
- $scene = Scene_File.new(true, false, false)
- when 4 # 结束游戏
- $scene = Scene_End.new
- end
- else
- case @command_window.index
- when 0 # 物品
- $scene = Scene_Item.new
- when 1,2,3 # 技能、装备、状态
- start_actor_selection
- when 4 # 存档
- $scene = Scene_File.new(true, false, false)
- when 5 # 结束游戏
- $scene = Scene_End.new
- end
- end
- end
- 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
- if $game_switches[Equip_Hide_Switch_ID]
- case @command_window.index
- when 1 # 技能
- $scene = Scene_Skill.new(@status_window.index)
- when 2 # 状态
- $scene = Scene_Status.new(@status_window.index)
- end
- else
- case @command_window.index
- when 1 # 技能
- $scene = Scene_Skill.new(@status_window.index)
- when 2 # 装备
- $scene = Scene_Equip.new(@status_window.index)
- when 3 # 状态
- $scene = Scene_Status.new(@status_window.index)
- end
- end
- end
- end
- end
复制代码 以上代码应该能实现你要的功能……如果我没理解错的话…… |
评分
-
查看全部评分
|