#*******************************************************************************************
#
# 請勿修改從這裡以下的程式碼,除非你知道你在做什麼!
# DO NOT MODIFY UNLESS YOU KNOW WHAT TO DO !
#
#*******************************************************************************************
#--------------------------------------------------------------------------
# ★ 紀錄腳本資訊
#--------------------------------------------------------------------------
if !$lctseng_scripts
$lctseng_scripts = {}
end
$lctseng_scripts[:level_limit] = "0.2"
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ● 最大等級 - 重新定義
#--------------------------------------------------------------------------
alias lctseng_for_limit_max_level_Max_level max_level
#--------------------------------------------------------------------------
def max_level
$game_actors.maxLevel = {} if !$game_actors.maxLevel
if !$game_actors.maxLevel[actor.id]
lctseng_for_limit_max_level_Max_level
else
$game_actors.maxLevel[actor.id]
end
end
end
class Game_Interpreter
#--------------------------------------------------------------------------
# ● 設定最大等級限制(角色ID為負或0,則更改所有角色),等級為-1代表移除限制
#--------------------------------------------------------------------------
def set_max_level_limit(id , limit)
if id <= 0
for i in 0...$data_actors.size
$game_actors.set_max_level_limit(i+1 , limit)
end
else
$game_actors.set_max_level_limit(id , limit)
end
end
end[/pre]