ID:144200
 
Code:
mob
verb
attack(mob/M as mob in oview(1))
usr.experience++
experience += 10
usr.level_check()
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M:HP -= damage
M:DeathCheck()


Problem description:
I was adding procs to my game and when i compiled the only problem was the verbs. it said that that the "verb" part needed an end statement, i tried alot of things to fix it none worked and it would just cause other problems.

Seeing as you didn't reply in the other thread, I'll post it again here:

Show the code directly above the attack verb.
In response to Saruto
The problem is with the "verb" part.
mob
verb //right here it needs and end statement.

But it doesnt neeed an end statement.
In response to Jiraiya999
The as mob is also redundant. And it should be M.DeathCheck and M.hp. The only time you do as is if your combining types as in.
mob
verb
delete(atom/A as obj|turf in view(usr,5))
del(A)
verb
deleteall()
for(var/atom/A as obj|turf in view(usr,5))
del(A)
In response to Jiraiya999
Yes.. it says its verb, but the problem is actually above it. Post the coding from above mob/verb.
In response to Saruto
i put the coding above mob/verb and it just said that attack needed an end statement. I'm starting to think that this is something wrong with DM.
In response to Jiraiya999
The problem isn't with DM, the problem is the bit of code above 'verb'. Post the code above mob/verb.
In response to Saruto
I did it didnt help unless i put it in the wrong spot.
In response to Jiraiya999
No he means post the code above mob/verb in the forum. With inexplicable problems like these, the error usually lies before the line it says.