#============================================================================== # RGSS2_転職・変身用スキルリセット # 2011/12/30公開 # C Winter (http://ccwinter.blog.fc2.com/) #============================================================================== #============================================================================== # ■ 設定項目 #============================================================================== module CWINTER NO_RESET_SKILL = [33, 34, 35] #指定したIDのスキルはskill_reset時に忘れない end #============================================================================== # ■ コマンド #============================================================================== module CWINTER module Commands module_function def skill_reset(id) actor = $game_actors[id] return if actor == nil for i in actor.skills actor.forget_skill(i.id) unless CWINTER::NO_RESET_SKILL.include?(i.id) end for i in actor.class.learnings actor.learn_skill(i.skill_id) if i.level <= actor.level end end def skill_reset_learn(id) actor = $game_actors[id] return if actor == nil for i in actor.class.learnings actor.learn_skill(i.skill_id) if i.level <= actor.level end end end end class Game_Interpreter include CWINTER::Commands end