In response to Choka
Code:
> mob
> verb
> Super_Slash(mob/M in oview(2))
> var/damage = usr.str - usr.def + 5
> if(damage <= 0)
> usr <<"[M] barely dodges your attack!"
> M <<" You BARELY dodge [usr]'s attack!"
> else M.hp -= damage
> view() <<"[M] takes [damage] damage from [usr]'s Super Slash!!!"
> deathcheck(M)
>


You still need to make deathcheck a proc which accepts an arguement.
In response to Zuglilth
Such as
mob/proc/deathcheck(var/mob/M)
if(src.hp <= 0)
world<<"[src] has died! Killed by [M]!"
src.loc=locate(1,1,1)
src.hp=src.maxhp
M<<"You killed [src]."
return 1
else return 0

Very very basic deathcheck code. Untested.
[EDIT: Whoops, forgot about that. :D ]
In response to Flame Sage
You need to have it pass an arguement, like (mob/M).
mob
verb
Super_Slash (mob/M in oview (2))
var/damage = usr.str - M.def + 5
if(damage <= 0)
usr <<"[M] barely dodges your attack!"
M <<" You BARELY dodge [usr]'s attack!"
else
M.hp -=damage
view()<<"[M] takes [damage] damage from [usr]'s Super Slash!!!"
M.deathcheck()

Ok.
1.You dont need "mob\M AS in oview(2)),it useless,and makin error,just delete it.
2.In var/damage=usr.str- usr.def+5, i guess u ment the oppoment defence,so it M.def
3.after If and else,there should be another tab (the tab in keyboardXD)
4.it is M.deathcheck(),not M:deathcheck()
Page: 1 2