$物品对应技能 = {
17 => 5,
}
class Game_Action
#--------------------------------------------------------------------------
# ● 设置物品
#--------------------------------------------------------------------------
def set_item(item_id)
if $物品对应技能.keys.include?(item_id)
set_skill($物品对应技能[item_id])
else
@item.object = $data_items[item_id]
end
self
end
end
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# ● 物品“确定”
#--------------------------------------------------------------------------
def on_item_ok
if $物品对应技能.keys.include?(@item_window.item.id)
@skill = $data_skills[$物品对应技能[@item_window.item.id]]
BattleManager.actor.input.set_skill(@skill.id)
BattleManager.actor.last_skill.object = @skill
end
@item = @item_window.item
BattleManager.actor.input.set_item(@item.id)
if !@item.need_selection?
@item_window.hide
next_command
elsif @item.for_opponent?
select_enemy_selection
else
select_actor_selection
end
$game_party.last_item.object = @item
end
end