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)
ID:261480
Apr 26 2002, 9:46 pm (Edited on Apr 26 2002, 9:53 pm)
|
|
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