ID:261480
 
Attack(mob in oview(1))
if (usr.prob_hit > M.prob_dge)
var/damage = rand(1, str)
usr << "You attack [mob]!"
usr << "[damage] damage!"
mob << "[usr] attacks you!"
mob << "[damage] damage!"

I'm getting two errors:

M.prob_dge:undefined var
usr.prob_hit:undefined var

No clue what to do.




Does this work?:

Attack (mob/M in oview(1))
if (prob_hit > src.prob_dge)
I think that 1 problem is that you should have...
Attack (mob/M in oview(1))//you forgot the /M
in the first code.
But im not too good at coding.
And you may need an else statment because what happens of the prob_hit < prob_dge?

But like i say im not a very good coder..(just thought id put my 2 cents in)

-FireGuy
Aim ID: trashplanet420