class Scene_Item < Scene_Base
#--------------------------------------------------------------------------
# ● 更新物品选择
#--------------------------------------------------------------------------
def update_item_selection
if Input.trigger?(Input::B)
Sound.play_cancel
return_scene
elsif Input.trigger?(Input::C)
@item = @item_window.item
if @item != nil
$game_party.last_item_id = @item.id
end
if $game_party.item_can_use?(@item) or $game_switches[1] == true
Sound.play_decision
determine_item
else
Sound.play_buzzer
end
end
end
end
#==============================================================================
# ■ Scene_Skill
#------------------------------------------------------------------------------
# 处理特技画面的类。
#==============================================================================
class Scene_Skill < Scene_Base
#--------------------------------------------------------------------------
# ● 更新目标选择
#--------------------------------------------------------------------------
def update_target_selection
if Input.trigger?(Input::B)
Sound.play_cancel
hide_target_window
elsif Input.trigger?(Input::C)
if not @actor.skill_can_use?(@skill) or $game_switches[1] == true
Sound.play_buzzer
else
determine_target
end
end
end
end作者: c24009 时间: 2012-8-3 22:01
好想加入你们的谈话……