module BGdifficulty_setting #Difficulty variable. Difficulty_variable = 3 #Defines for the variables Very_Easy = 1 Easy = 2 Normal = 3 Hard = 4 Very_Hard = 5 #modifiers to gold, EXP and JP per difficulty Very_Easy_Gold = 2 Very_Easy_EXP = 2 Very_Easy_JP = 2 Easy_Gold = 1.5 Easy_EXP = 1.5 Easy_JP = 1.5 Hard_Gold = 0.75 Hard_EXP = 0.75 Hard_JP = 0.75 Very_Hard_Gold = 0.5 Very_Hard_EXP = 0.5 Very_Hard_JP = 0.5 end class Game_Enemy < Game_Battler #-------------------------------------------------------------------------- # * Overwrite method: exp #-------------------------------------------------------------------------- def exp case $game_variables[BGdifficulty_setting::Difficulty_variable] when BGdifficulty_setting::Very_Easy return (enemy.exp * BGdifficulty_setting::Very_Easy_EXP).to_i when BGdifficulty_setting::Easy return (enemy.exp * BGdifficulty_setting::Easy_EXP).to_i when BGdifficulty_setting::Hard return (enemy.exp * BGdifficulty_setting::Hard_EXP).to_i when BGdifficulty_setting::Very_Hard return (enemy.exp * BGdifficulty_setting::Very_Hard_EXP).to_i end #Original line will be reached if normal difficulty, or variable not set. return enemy.exp end #End def exp #-------------------------------------------------------------------------- # * Overwrite method: gold #-------------------------------------------------------------------------- def gold case $game_variables[BGdifficulty_setting::Difficulty_variable] when BGdifficulty_setting::Very_Easy return (enemy.gold * BGdifficulty_setting::Very_Easy_Gold).to_i when BGdifficulty_setting::Easy return (enemy.gold * BGdifficulty_setting::Easy_Gold).to_i when BGdifficulty_setting::Hard return (enemy.gold * BGdifficulty_setting::Hard_Gold).to_i when BGdifficulty_setting::Very_Hard return (enemy.gold * BGdifficulty_setting::Very_Hard_Gold).to_i end #Original line reached if normal difficulty, or variable not set return enemy.gold end #End def gold #-------------------------------------------------------------------------- # * Overwrite method: jp #-------------------------------------------------------------------------- def jp case $game_variables[BGdifficulty_setting::Difficulty_variable] when BGdifficulty_setting::Very_Easy return (enemy.jp_gain * BGdifficulty_setting::Very_Easy_JP).to_i when BGdifficulty_setting::Easy return (enemy.jp_gain * BGdifficulty_setting::Easy_JP).to_i when BGdifficulty_setting::Hard return (enemy.jp_gain * BGdifficulty_setting::Hard_JP).to_i when BGdifficulty_setting::Very_Hard return (enemy.jp_gain * BGdifficulty_setting::Very_Hard_JP).to_i end return enemy.jp_gain end end #End class Game_Enemy