Sobeman459
Member
I am looking for or for someone to make me me a script where the enemies have levels. They do not need to level up just have levels. Thanks in advance.
-Bigbg459
-Bigbg459
class Game_Enemy
# enemy_id => level
Level = {}
alias seph_easyenemylevels_gmeny_init initialize
def initialize(troop_id, member_index)
seph_easyenemylevels_gmeny_init(troop_id, member_index)
@level = Level[@enemy_id]
end
end
if skill.atk_f == 1
rate = ((((2 * user.level / 5 + 2) * user.str * skill.power / self.pdef) / 50) + 2) * (100 - rand(15)) / 100
self.damage = rate
end
if skill.atk_f == 2
rate = ((((2 * user.level / 5 + 2) * user.int * skill.power / self.mdef) / 50) + 2) * (100 - rand(15)) / 100
self.damage = rate
end