| 赞 | 72 |
| VIP | |
| 好人卡 | |
| 积分 | 23 |
| 经验 | |
| 最后登录 | 2022-3-9 |
| 在线时间 | 4033 小时 |
…あたしは天
- 梦石
- 0
- 星屑
- 2311
- 在线时间
- 4033 小时
- 注册时间
- 2010-10-4
- 回帖
- 10548
 
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 taroxd 于 2015-1-18 18:48 编辑
[pre lang="ruby" line="1"]
#--------------------------------------------------------------------------
# ● 不可撤退时,跳过“战斗/撤退”指令的选择
#--------------------------------------------------------------------------
module Taroxd
module SkipPartyCommand
# 满足此条件时,不跳过指令选择
def self.disabled?
BattleManager.can_escape?
end
end
end
# 是否存在上一个指令。无副作用。
def BattleManager.prior_command?
actors = $game_party.battle_members.first(@actor_index + 1)
actor = actors.pop
actor && (actor.prior_command? || actors.any?(&:inputable?))
end
class Game_Actor < Game_Battler
# 是否已经输入过指令
def prior_command?
@action_input_index > 0
end
end
class Scene_Battle < Scene_Base
def start_party_command_selection
return if scene_changing?
refresh_status
@status_window.unselect
@status_window.open
if BattleManager.input_start
if Taroxd::SkipPartyCommand.disabled?
@actor_command_window.close
@party_command_window.setup
else
command_fight
end
else
@party_command_window.deactivate
turn_start
end
end
end
class Window_ActorCommand < Window_Command
def cancel_enabled?
Taroxd::SkipPartyCommand.disabled? || BattleManager.prior_command?
end
end
[/pre] |
|