The code here won't delete the target after his health is depleted:
verb/Bash()
set src in oview(1)
damage = (usr:strength * 10) - src.intel
view() << "[usr] bashes [src] for [damage] points!"
if(src.health <= 0)
view() << "[src] was sent home."
Del(src)
ID:148659
Nov 22 2002, 3:50 pm
|
|
In response to Dog Man
|
|
Oh, I see. It should be del(src), not Del(src).
-DogMan |
In response to Dog Man
|
|
It still doesn't get deleted; it dosent even say the message.
|
In response to Delita12345
|
|
Ok, sounds like youve messed up using src or usr. Add world << "src:[src], usr:[usr]" to the start of your verb to test.
-DogMan |
In response to Delita12345
|
|
Put <code>view() << src.health</code> , then proceed with vigorous forehead smacking.
|
In response to Garthor
|
|
What he means is that you forgot to take damage away from src.health.
-DogMan |
-DogMan