#===============================================================================
#★ 简单的敌人难度设置 ★
#-----------------------------------------------------------------------------
# by -> 芯☆淡茹水
#==============================================================================
#◆ 使用方法: 复制该脚本,插入到 main 前。
#==============================================================================
#◆ 设置项:
#-------------------------
# 改变敌人难度的变量 ID
VAR_DIFFCULTY = 2
# 难度每增加一级,敌人属性所增加的百分比。
PERCENTAGE_DIFFICULTY = 5
#==============================================================================
=begin
◆ 说明 :其实是一个很简单的东西,通过改变上面设置的变量值,来改变游戏难度(敌人
的属性)。
敌人的各项属性 = 数据库设置的属性 + 数据库设置的属性 X 设置的变量的值 X 设置的百分比 / 100
比如:某敌人数据库里 HP 设置为 100,变量值为 0 ,百分比为 20 。那么该敌人的
HP = 100 + 100 X 0 X 20 / 100 = 100
变量值为 1 :HP = 100 + 100 X 1 X 20 / 100 = 120
变量值为 2 :HP = 100 + 100 X 2 X 20 / 100 = 140
以此类推,,,
敌人其他属性同上
=end
#==============================================================================
class Game_Enemy < Game_Battler
#--------------------------------------------------------------------------
# ● HP
#--------------------------------------------------------------------------
def base_maxhp
n = $data_enemies[@enemy_id].maxhp
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● SP
#--------------------------------------------------------------------------
def base_maxsp
n = $data_enemies[@enemy_id].maxsp
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本力量
#--------------------------------------------------------------------------
def base_str
n = $data_enemies[@enemy_id].str
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本灵巧
#--------------------------------------------------------------------------
def base_dex
n = $data_enemies[@enemy_id].dex
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本速度
#--------------------------------------------------------------------------
def base_agi
n = $data_enemies[@enemy_id].agi
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本魔力
#--------------------------------------------------------------------------
def base_int
n = $data_enemies[@enemy_id].int
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本攻击力
#--------------------------------------------------------------------------
def base_atk
n = $data_enemies[@enemy_id].atk
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本物理防御
#--------------------------------------------------------------------------
def base_pdef
n = $data_enemies[@enemy_id].pdef
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本魔法防御
#--------------------------------------------------------------------------
def base_mdef
n = $data_enemies[@enemy_id].mdef
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本回避修正
#--------------------------------------------------------------------------
def base_eva
n = $data_enemies[@enemy_id].eva
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本金钱
#--------------------------------------------------------------------------
def base_gold
n = $data_enemies[@enemy_id].gold
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
#--------------------------------------------------------------------------
# ● 基本经验
#--------------------------------------------------------------------------
def base_exp
n = $data_enemies[@enemy_id].exp
return n + n * $game_variables[VAR_DIFFCULTY] * PERCENTAGE_DIFFICULTY / 100
end
end
#==============================================================================