if I have the following verb:
obj/something/verb/whatever()
set src in view(1)
exchange_verbs(usr)
and the following proc:
proc/exchange_verbs(mob/PC/N)
for(var/M in N.verbs)
N << "test"
N.verbs.Remove(M)
why won't it remove the verbs? In other cases, it works, just not with the obj/verb. It outputs "test" like it should, but nothing is removed. N.client.verbs.Remove(M) doesn't work, either.
ID:178587
Apr 25 2002, 11:13 am
|
|
Apr 25 2002, 12:37 pm
|
|
I think the reason that it does not remove the obj/verb is that the obj/verb does not belong to the usr, it belongs to the obj. It is not in the usr.verbs.
|
In response to Loduwijk
|
|
I don't want the obj verb deleted, I need all of the other available verbs deleted
so, is there just no possible way to make this work? |
How about,
obj/whatever verb Blah() usr.Boo() mob/proc/Boo() for(var/N in src.verbs) src<<"test" src.verbs.Remove(N) |
In response to Super16
|
|
Super16 wrote:
How about, the only problem with the last part is that everything for src is undefined (according to compiler) |