本帖最后由 taroxd 于 2014-6-15 18:10 编辑
class Window_ActorCommand < Window_Command def make_command_list return unless @actor disabled = [3,4,5].include?(@actor.id) # 3、4、5号角色触发 add_attack_command unless disabled add_skill_commands add_guard_command add_item_command unless disabled end end
class Window_ActorCommand < Window_Command
def make_command_list
return unless @actor
disabled = [3,4,5].include?(@actor.id) # 3、4、5号角色触发
add_attack_command unless disabled
add_skill_commands
add_guard_command
add_item_command unless disabled
end
end
未测试
@Sion 结贴 |