ID:159223
 
How would I give enemies random stats everytime they respawn, say you killed an enemie and then he respawned with different stats rand(1,100) for the level and rand(1,50) for the str, def, hp and mp.

Thanks in advance for the help.

-Gizhy
atom/New()
In response to Mysame
I created a proc like this:

mob/proc
RandomStats(var/randlevel=rand(10,5000),var/randmki=rand(10,5000),var/randki=rand(10,5000),var/randpl=rand(10,5000),var/randmpl=rand(10,5000),var/randdef=rand(10,5000),var/randstr=rand(1,5000),var/randzeni=rand(10,5000),var/randexp=rand(10,5000),var/randmexp=rand(10,5000))
src.level = randlevel
src.mpl = randmpl
src.pl = randpl
src.ki = randki
src.mki = randmki
src.def = randdef
src.str = randstr
src.zeni = randzeni
src.exp = randexp
src.mexp = randmexp



And I call the proc everytime a monster spawns.