What is wrong with this?
mob
verb
Start()
if(src.z < 13)
sleep(10)
src.z++
if(src.z >= 14)
del mob/verb/Start
Here's the errors...
verbs.dm:8:error:mob:undefined var
verbs.dm:8:error:verb:undefined var
verbs.dm:8:error:Start:undefined var
I want it to del the start verb after the 4'th z.level.
Punkrock546</13>
ID:177776
Jul 30 2002, 12:02 pm
|
|
Punkrock546 wrote:
What is wrong with this? Your syntax for removing the verb is totally wrong. The verb isn't a datum, so you can't use it with del(), and "mob/verb/Start" isn't a valid syntax for referring to anything inside a proc (you'd have to put a / in front to have a proper type path). To remove the verb from src, use this:
src.verbs-=/mob/verb/Start
Lummox JR |
In response to Super16
|
|
Thanx that worked.
Punkrock546 |
verbs.Remove(/mob/verb/Start)