赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-10-29 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3185
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
本帖最后由 hys111111 于 2012-5-25 12:53 编辑
已修复- #==============================================================================
- # ■ Scene_Battle (分割定义 已被篡改)
- #------------------------------------------------------------------------------
- # 逃跑时,全体同伴都要逃跑。
- #==============================================================================
- class Scene_Battle
- #--------------------------------------------------------------------------
- # ● 刷新画面 (同伴命令回合)
- #--------------------------------------------------------------------------
- def update_phase2
-
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if $game_temp.battle_can_escape
- @sp_can_escape = 1
- for actor in $game_party.actors
- if actor.sp < 100
- @sp_can_escape = 0
- break
- end
- end
- else
- @sp_can_escape = 0
- end
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- # 按下 C 键的情况下
- if Input.trigger?(Input::C)
- # 同伴指令窗口光标位置分支
- case @party_command_window.index
- when 0 # 战斗
- # 演奏确定 SE
- $game_system.se_play($data_system.decision_se)
- # 开始角色的命令回合
- start_phase3
- when 1 # 逃跑
- # 不能逃跑的情况下
- if @sp_can_escape == 0 #修改部分
- # 演奏冻结 SE
- $game_system.se_play($data_system.buzzer_se)
- return
- end
-
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- for actor in $game_party.actors
- actor.sp -= 100
- end
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- # 演奏确定 SE
- $game_system.se_play($data_system.decision_se)
- # 逃走处理
- update_phase2_escape
- end
- return
- end
- end
- end
- #==============================================================================
- # ■ Window_PartyCommand
- #------------------------------------------------------------------------------
- # 战斗画面、选择战斗与逃跑的窗口。
- #==============================================================================
- class Window_PartyCommand < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 640, 64)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.back_opacity = 160
- @commands = ["战斗", "逃跑"]
- @item_max = 2
- @column_max = 2
- draw_item(0, normal_color)
-
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- if $game_temp.battle_can_escape
- @sp_can_escape = 1
- for actor in $game_party.actors
- if actor.sp < 100
- @sp_can_escape = 0
- break
- end
- end
- else
- @sp_can_escape = 0
- end
- #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
- draw_item(1, @sp_can_escape == 1 ? normal_color : disabled_color)
- self.active = false
- self.visible = false
- self.index = 0
- end
- end
复制代码 |
|