ID:150023
 
I can't make it where the mobs have seperate stats, they all end up with the same stats, and it ticks me off. Can somebody help with that?
You would have to change the var that acompanys the stat at mob/Login(); var = number.
In response to Nadrew
that didn't work. i want my character to have a certain amount of defense and the enemy a different amount. so I have the var defined under /mob and then i did what you said at Login(), but still the enemies have the same amount of defense.
could i maybe get a sample code of how to setup a stat system where all the mobs dont have the same stats?
In response to flimsmilf01
mob
var
stat1 = 0
stat2 = 0
enemy1
stat1 = 10
stat2 = 15
enemy2
stat1 = 40
stat2 = 4
player
stat1 = 10
stat2 = 5

Help any? This gives each of these mobs their own stats.
In response to Darkness
no that still didn't work... I think i tried that before and got the same result as now.
i think i will give an example of the code so maybe then people will be able to help me...

mob/var
hp = 500
skill = 100
shields = 0

Login()
hp = 700
skill = 200
shields = 100

trainer
icon = 'trainer.dmi'
shields = 50

and then I have a proc that calls up... oh man... i just found my problem.

it wasn't the stats, it was the proc i use that show me their stats.
this is what I had... im such an idiot

proc/sense(src as mob in oview())
src << "[src]: HP[hp] skill[skill] shields[shields]"

it was calling my stats everytime
as soon as i noticed that i changed it to

proc/sense(src as mob in oview())
src << "[src]: HP[src:hp] skill[src:skill] shields[src:shields]"

thanks for helping me see this. (i can't believe i overlooked it for so long.)
In response to flimsmilf01
flimsmilf01 wrote:
proc/sense(src as mob in oview())
src << "[src]: HP[hp] skill[skill] shields[shields]"

it was calling my stats everytime
as soon as i noticed that i changed it to

proc/sense(src as mob in oview())
src << "[src]: HP[src:hp] skill[src:skill] shields[src:shields]"

Actually you have a bigger problem in that you're using src as the name for the variable in your proc. This effectively destroys the value of the actual src. I think what you want is something more like this--that is, if the proc belongs to the person using it:
proc/sense(mob/M in oview())
usr << "[M]: HP [M.hp], skill [M.skill], shields [M.shields]"

You shouldn't be naming one of the arguments "src"; although there are cases where it makes sense to alter the value of src, using it for the name of a proc argument isn't one of them.

Lummox JR
In response to Lummox JR
yeah i began to notice that last night when i kept getting a weird runtime error, but i couldnt figure out why, thanks.