class Scene_Battle
def on_skill_ok
# 当角色在28号状态时,无论选择什么技能都会使用4号技能
# 你可以将4号技能设为等待
@skill = BattleManager.actor.state?(28) ? $data_skills[4] : @skill_window.item
BattleManager.actor.input.set_skill(@skill.id)
BattleManager.actor.last_skill.object = @skill
if !@skill.need_selection?
@skill_window.hide
next_command
elsif @skill.for_opponent?
select_enemy_selection
else
select_actor_selection
end
end
end
class Scene_Battle
def on_skill_ok
# 当角色在28号状态时,无论选择什么技能都会使用4号技能
# 你可以将4号技能设为等待
@skill = BattleManager.actor.state?(28) ? $data_skills[4] : @skill_window.item
BattleManager.actor.input.set_skill(@skill.id)
BattleManager.actor.last_skill.object = @skill
if !@skill.need_selection?
@skill_window.hide
next_command
elsif @skill.for_opponent?
select_enemy_selection
else
select_actor_selection
end
end
end