赞 | 2 |
VIP | 0 |
好人卡 | 7 |
积分 | 6 |
经验 | 19992 |
最后登录 | 2024-11-5 |
在线时间 | 282 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 626
- 在线时间
- 282 小时
- 注册时间
- 2006-4-9
- 帖子
- 203
|
class Game_Actor
alias :eds_pre_auto_initialize :initialize
def initialize(id)
eds_pre_auto_initialize(id)
@default_autobattle = actor.auto_battle
end
def default_autobattle?
return @default_autobattle
end
def auto_battle=(value)
actor.auto_battle = value
end
end
class Window_PartyCommand < Window_Command
def initialize
s1 = Vocab::fight
s2 = Vocab::escape
s3 = "Auto"
super(128, [s1, s2, s3], 1, 4)
draw_item(0, true)
draw_item(1, $game_troop.can_escape)
draw_item(2, true)
self.active = false
end
end
class Scene_Battle
alias :eds_pre_auto_update_party_command_selection :update_party_command_selection
def update_party_command_selection
if Input.trigger?(Input::C)
if @party_command_window.index == 2
$game_party.members.each { |actor| actor.auto_battle = true }
next_actor
end
end
eds_pre_auto_update_party_command_selection
end
alias :eds_pre_auto_start_party_command_selection :start_party_command_selection
def start_party_command_selection
for actor in $game_party.members
actor.auto_battle = false unless actor.default_autobattle?
end
eds_pre_auto_start_party_command_selection
end
end
#转自其它网站
#在战斗画面命令选择菜单中加入了Auto, 但只进行一个回合的自动战斗,如果你使用比较复杂的战斗脚本例如SBS,那么需要修改脚本
Tks.
Edward.C |
|