#============================================================================== # ■ XP-RGSS-11-opt 熟練度上昇操作 [Ver.1.3.0] by Claimh #------------------------------------------------------------------------------ # ・熟練度上昇設定をイベントにて操作できます。 # ・全体のバランスが崩れるなどの危険性あり。 #============================================================================== #============================================================================== # ■ Interpreter #============================================================================== class Interpreter #-------------------------------------------------------------------------- # ● 熟練度EXP 計算(基本値、傾き) # actor_id :アクターID # attr_id :属性ID # up_interval :基本値 # up_slope :傾き #-------------------------------------------------------------------------- def make_attr_list_event(actor_id, attr_id, up_interval, up_slope) list = [] list[0] = list[1] = 0 actor_attr = $game_actors[actor_id].attr[attr_id] for lv in 2..actor_attr.lv_limit case SysUpdate::LEVEL_UP_PATTERN when 0; exp = up_interval * (lv-1) when 1; exp = list[lv-1] + up_slope * (lv-1) + up_interval when 2; exp = list[lv-1] + up_slope * (lv-1) * (lv-1) + up_interval end list[lv] = exp.truncate end # EXPのリセット actor_attr.exp_list = list # 使用回数のリセット actor_attr.reset_use end end