赞 | 0 |
VIP | 6 |
好人卡 | 8 |
积分 | 1 |
经验 | 2887 |
最后登录 | 2014-1-19 |
在线时间 | 116 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 116 小时
- 注册时间
- 2012-8-12
- 帖子
- 61
|
本帖最后由 吾不知 于 2012-8-23 22:05 编辑
Window_ActorCommand中- #--------------------------------------------------------------------------
- # ● 生成指令列表
- #--------------------------------------------------------------------------
- def make_command_list
- return unless @actor
- if $game_switches[5] ==true #五号开关
- add_attack_command
- add_skill_commands
- add_guard_command
- #~ add_item_command
- else
- add_attack_command
- add_skill_commands
- add_guard_command
- add_item_command
- end
- end
复制代码 Scene_Battle中- #--------------------------------------------------------------------------
- # ● 生成角色指令窗口
- #--------------------------------------------------------------------------
- def create_actor_command_window
- @actor_command_window = Window_ActorCommand.new
- @actor_command_window.viewport = @info_viewport
- if $game_switches[5] ==true #五号开关
- @actor_command_window.set_handler(:attack, method(:command_attack))
- @actor_command_window.set_handler(:skill, method(:command_skill))
- @actor_command_window.set_handler(:guard, method(:command_guard))
- #~ @actor_command_window.set_handler(:item, method(:command_item))
- @actor_command_window.set_handler(:cancel, method(:prior_command))
- else
- @actor_command_window.set_handler(:attack, method(:command_attack))
- @actor_command_window.set_handler(:skill, method(:command_skill))
- @actor_command_window.set_handler(:guard, method(:command_guard))
- @actor_command_window.set_handler(:item, method(:command_item))
- @actor_command_window.set_handler(:cancel, method(:prior_command))
- end
- #~ @actor_command_window.set_handler(:attack, method(:command_attack))
- #~ @actor_command_window.set_handler(:skill, method(:command_skill))
- #~ @actor_command_window.set_handler(:guard, method(:command_guard))
- #~ @actor_command_window.set_handler(:item, method(:command_item))
- #~ @actor_command_window.set_handler(:cancel, method(:prior_command))
- @actor_command_window.x = Graphics.width
- end
复制代码 即可实现打开5号开关在角色指令中禁止物品!
|
评分
-
查看全部评分
|