전투의 난이도를 사용자가 선택 가능하게 하는 스크립트입니다. 메뉴화면 개조 와의 병용을 추천 합니다. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #_/ ◆전투 난이도 - KGC_BattleDifficulty◆ #_/---------------------------------------------------------------------------- #_/ 전투 난이도의 설정 기능을 추가합니다. #_/ (기능 자체는 독립형. 메뉴등에 표시하는 경우는[MenuAlter][TitleOption]참조) #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #============================================================================== # ★ 커스터마이즈 항목 ★ #============================================================================= = class Game_System # 난이도 배열 작성 # ≪"명칭", HP, SP, 타능력치, EXP, 골드, 트레이닝 전기밥통 출현율≫ # 각 항목의 배율을 지정.소수점 사용가능 DIFFICULTY_LIST = [ ["Easy", 0.8, 0.8, 0.7, 1.0, 1.0, 1.0], ["Normal", 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], ["Hard", 1.5, 1.3, 1.2, 1.0, 1.0, 1.0], ["Mania", 2.0, 1.8, 1.5, 1.0, 1.0, 1.0], ["Divine", 3.0, 2.6, 2.0, 1.0, 1.0, 1.0]] end #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ $imported["BattleDifficulty"] = true #-------------------------------------------------------------------------- # ●난이도 설정 취득 #-------------------------------------------------------------------------- def get_difficulty # 난이도 설정을 돌려준다 return $game_system.difficulty_list[$game_system.difficulty] end #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ #============================================================================== # ■ Game_System #============================================================================== class Game_System #-------------------------------------------------------------------------- # ● 公開インスタンス変数 #-------------------------------------------------------------------------- attr_accessor :difficulty # 難易度 attr_accessor :difficulty_list # 難易度リスト #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- alias initialize_KGC_BattleDifficulty initialize def initialize # 元の処理を実行 initialize_KGC_BattleDifficulty @difficulty = 1 @difficulty_list = DIFFICULTY_LIST end end #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ #============================================================================== # ■ Game_Enemy #============================================================================== class Game_Enemy < Game_Battler #-------------------------------------------------------------------------- # ● 基本 MaxHP の取得 #-------------------------------------------------------------------------- alias base_maxhp_KGC_BattleDifficulty base_maxhp def base_maxhp n = base_maxhp_KGC_BattleDifficulty n *= get_difficulty[1] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本 MaxSP の取得 #-------------------------------------------------------------------------- alias base_maxsp_KGC_BattleDifficulty base_maxsp def base_maxsp n = base_maxsp_KGC_BattleDifficulty n *= get_difficulty[2] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本腕力の取得 #-------------------------------------------------------------------------- alias base_str_KGC_BattleDifficulty base_str def base_str n = base_str_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本器用さの取得 #-------------------------------------------------------------------------- alias base_dex_KGC_BattleDifficulty base_dex def base_dex n = base_dex_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本素早さの取得 #-------------------------------------------------------------------------- alias base_agi_KGC_BattleDifficulty base_agi def base_agi n = base_agi_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本魔力の取得 #-------------------------------------------------------------------------- alias base_int_KGC_BattleDifficulty base_int def base_int n = base_int_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本攻撃力の取得 #-------------------------------------------------------------------------- alias base_atk_KGC_BattleDifficulty base_atk def base_atk n = base_atk_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本物理防御の取得 #-------------------------------------------------------------------------- alias base_pdef_KGC_BattleDifficulty base_pdef def base_pdef n = base_pdef_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本魔法防御の取得 #-------------------------------------------------------------------------- alias base_mdef_KGC_BattleDifficulty base_mdef def base_mdef n = base_mdef_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● 基本回避修正の取得 #-------------------------------------------------------------------------- alias base_eva_KGC_BattleDifficulty base_eva def base_eva n = base_eva_KGC_BattleDifficulty n *= get_difficulty[3] return Integer(n) end #-------------------------------------------------------------------------- # ● EXP の取得 #-------------------------------------------------------------------------- alias exp_KGC_BattleDifficulty exp def exp n = exp_KGC_BattleDifficulty n *= get_difficulty[4] return Integer(n) end #-------------------------------------------------------------------------- # ● ゴールドの取得 #-------------------------------------------------------------------------- alias gold_KGC_BattleDifficulty gold def gold n = gold_KGC_BattleDifficulty n *= get_difficulty[5] return Integer(n) end #-------------------------------------------------------------------------- # ● トレジャー出現率の取得 #-------------------------------------------------------------------------- alias treasure_prob_KGC_BattleDifficulty treasure_prob def treasure_prob n = treasure_prob_KGC_BattleDifficulty n *= get_difficulty[6] return Integer(n) end end