#============================================================================== # ■ 共通定義拡張「★魔法防御パラメーター追加★」 #------------------------------------------------------------------------------ # 共通定義の基本能力値描画と能力値補正描画を拡張。 # このスクリプトでは回想領域「ろかん」様の「魔法防御パラメーター追加」に対応 # draw_actor_basic_parameter(@actor, x, y + WLH * n, n)←基本能力値 # draw_actor_round_parameter(@actor, x, y + WLH * n, n)←補正能力値 # nに↓で設定した数値を入れれば完成です # # 要「共通定義」 # 「共通定義」 「★魔法防御パラメーター追加★」より下に導入してください # *月の下の宿 # URL:http://gekkasou.shiteyattari.com/ #============================================================================== module An_Basic_Extend #上のnに設定する値 #4以上の数字にしてください Mdef = 4 end #============================================================================== # ■ Window_Base #============================================================================== module An_BF alias :an_mdef_get_vocab_names :get_vocab_names alias :an_mdef_get_basic_params :get_basic_params alias :an_mdef_get_params :get_params undef get_vocab_names, get_basic_params, get_params module_function :an_mdef_get_vocab_names, :an_mdef_get_basic_params, :an_mdef_get_params module_function #-------------------------------------------------------------------------- # ● 能力値名称の取得 #-------------------------------------------------------------------------- def get_vocab_names(type) if type == An_Basic_Extend::Mdef return Vocab.mdef else return an_mdef_get_vocab_names(type) end end #-------------------------------------------------------------------------- # ● 基本能力値の取得 #-------------------------------------------------------------------------- def get_basic_params(actor, type) if type == An_Basic_Extend::Mdef return $data_actors[actor.id].mdef_parameter(actor.level) else return an_mdef_get_basic_params(actor, type) end end #-------------------------------------------------------------------------- # ● 能力値(補正込み)の取得 #-------------------------------------------------------------------------- def get_params(actor, type) if type == An_Basic_Extend::Mdef return actor.mdef else return an_mdef_get_params(actor, type) end end end #ver1.04