本帖最后由 taroxd 于 2014-6-13 20:35 编辑
第一个要求(未测试):
class Game_Map # 在此处设置 ENCOUNTER_SETTING = { 1 => [5, 2], # 地图ID为1的地图,当等级大于等于5时,遇敌步数增加到原来的两倍 5 => [7, 3], # 以此类推设置 } # 设置部分结束 alias normal_encounter_step encounter_step def encounter_step lv, rate = ENCOUNTER_SETTING[@map_id] return normal_encounter_step if !lv || $game_party.highest_level < lv (normal_encounter_step * rate).to_i end end
class Game_Map
# 在此处设置
ENCOUNTER_SETTING = {
1 => [5, 2], # 地图ID为1的地图,当等级大于等于5时,遇敌步数增加到原来的两倍
5 => [7, 3], # 以此类推设置
}
# 设置部分结束
alias normal_encounter_step encounter_step
def encounter_step
lv, rate = ENCOUNTER_SETTING[@map_id]
return normal_encounter_step if !lv || $game_party.highest_level < lv
(normal_encounter_step * rate).to_i
end
end
第二个要求要改动的有点多,我就不帮忙了=。=
|