插入到main之前,在敌人的备注里面写上等级 = XX
class Game_Enemy < Game_Battler attr_accessor :level alias qqeat_initialize initialize def initialize(index, enemy_id) qqeat_initialize(index, enemy_id) $data_enemies[@enemy_id].note.scan(/等级\s*=\s*(\d+)/i) @level = $1.to_i end end
class Game_Enemy < Game_Battler
attr_accessor :level
alias qqeat_initialize initialize
def initialize(index, enemy_id)
qqeat_initialize(index, enemy_id)
$data_enemies[@enemy_id].note.scan(/等级\s*=\s*(\d+)/i)
@level = $1.to_i
end
end
|