i get strange indentation errors
mob
verb
Attack(mob/M as mob in get_step(src,src.dir))
var/damage = usr.str - M.def
if(M.icon_state == "ko")
usr << "ko"
else
if(damage <= 0)
usr:punchanim()
usr << "[M] easily dodges your attack!"
else
M.powerlvl -= damage
view() << "[usr] attacks [M] for [damage] HP!"
usr:punchanim()
M:deathcheck()
ID:163415
![]() Aug 29 2007, 10:03 pm
|
|
You usr abuse a lot, not to mention use ":" instead of "."
Post your code in <.DM> <./DM> tags, without the periods, so we can read it better.