How do i fix this? no matter where i move it, it always says empty else clause
mob/verb/Hit(mob/M in oview(1))
set category = "Attack"
usr.icon_state = "hit"
M.icon_state = "hit"
usr.verbs -= /mob/verb/Hit
M:verbs -= /mob/verb/Hit
//since usr is hitting mob he will take off more
M.HP -= (usr.str)
//the guy hes attacking will fight back but wont take as much off since hes on the defence
usr.HP -= (M.str/2)
//the moving bit
sleep(8)
usr.Move(locate(usr:x, usr:y+4, usr:z))
M:loc = usr.loc
sleep(2)
usr.Move(locate(usr:x-3, usr:y-4, usr:z))
M:loc = usr.loc
sleep(2)
usr.Move(locate(usr:x+6, usr:y, usr:z))
M:loc = usr.loc
sleep(2)
usr.Move(locate(usr:x-6, usr:y+4, usr:z))
M:loc = usr.loc
sleep(2)
usr.Move(locate(usr:x+3, usr:y, usr:z))
M:loc = usr.loc
sleep(2)
usr.Move(locate(usr:x, usr:y-4, usr:z))
M:loc = usr.loc
sleep(8)
//verbs come back
usr.verbs -= /mob/verb/Hit
M:verbs -= /mob/verb/Hit
//they go back to normal
usr.icon_state = "hit"
M.icon_state = "hit"
//you cant hit urself
if(M = usr)
..()
else
M <<"You are hit"
usr.pl-=1
if(M.HP<0)
if(istype(M, /mob/char))//or whatever ur address for u characters is
M.pl += 5
M.loc=locate(1,1,1)//heaven coordinates
else
new /obj/
World.dm:526: Inconsistent indentation.
World.dm:528:warning: empty 'else' clause
World.dm:535:warning: empty 'else' clause
ID:150041
Dec 27 2001, 10:56 pm
|
|
You didnt indent correctly after the bold else. I still don't think I have it correct, but you should be able to get it now. Like Foomer said, it was pretty bad, Hope I helped.
?The Wizard of How¿