| 赞 | 0 |
| VIP | 0 |
| 好人卡 | 0 |
| 积分 | 4 |
| 经验 | 201687 |
| 最后登录 | 2024-7-14 |
| 在线时间 | 125 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 431
- 在线时间
- 125 小时
- 注册时间
- 2006-11-2
- 帖子
- 1200
|
以下引用精灵使者于2007-8-25 22:04:59的发言:
判断是否禁止存档要用到脚本。
建个条件分歧,里面写
条件分歧:脚本:$game_system.save_disabled
不可存档的事件
除此以外的场合
可以存档的事件
呼叫存档画面
分歧结束
这样你就可以用禁止存档完全关闭存进度的事件。
不是公共事件的菜单.
- class Window_Command_New < Window_Selectable
- def initialize(actors=4,enemynums=0)
- super(438, 20, 172, 130)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.opacity = HS::OPACITY
- @commands = ["物品","魔法","状态","装备","队列","保存"]
- @item_max = 6
- @column_max = 2
- @actors = actors
- @enemynums = enemynums
- draw_item(0, normal_color)
- draw_item(1, @actors==0 ? disabled_color : normal_color)
- draw_item(2, @actors==0 ? disabled_color : normal_color)
- draw_item(3, @actors==0 ? disabled_color : normal_color)
- draw_item(4, @actors==0 ? disabled_color : normal_color)
- draw_item(5, $game_system.save_disabled ? disabled_color : normal_color)
- self.index = 0
- end
- def draw_item(index, color)
- self.contents.font.color = color
- x = 4 + index % 2 * 70
- y = index / 2 * 32
- rect = Rect.new(x, y, 64, 32)
- self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
- self.contents.draw_text(rect, @commands[index], 1)
- end
- def update_cursor_rect
- x = 4 + index % 2 * 70
- y = index / 2 * 32
- self.cursor_rect.set(x, y, 64, 32)
- end
- end
- class Scene_Menu
- def initialize(menu_index = 0)
- @menu_index = menu_index
- end
- def main
- # check_enemy_in_map($game_player.x,$game_player.y)
- cmd = Window_Command_New.new($game_party.actors.size)
- cmd.index = @menu_index
- Graphics.transition
- loop do
- Graphics.update
- Input.update
- cmd.update
- if Input.trigger?(Input::B)
- $game_system.se_play($data_system.cancel_se)
- $scene = Scene_Map.new
- end
- if Input.trigger?(Input::C)
- case cmd.index
- when 0
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Item.new
- when 1
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Skill.new
- when 2
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Status.new
- when 3
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Equip.new
- when 4
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Change_Turn.new
- when 5
- if $game_system.save_disabled
- $game_system.se_play($data_system.buzzer_se)
- cmd.dispose
- return
- end
- $game_system.se_play($data_system.decision_se)
- $scene = Scene_Save.new
- end
- end
- if $scene != self
- break
- end
- end
- Graphics.freeze
- cmd.dispose
- end
- end
复制代码
覆盖 Scene_Menu
不过有个诡异的问题 禁止菜单后按存档 会跳回物品选项
影响不大 如果你觉得有必要修改的话留短信给我 明天我再看看
睡觉去了..
PS: 大家平等交流,别叫k大什么的,感觉怪怪的.{/gg} |
|