ID:149156
 
In my Login() I have a simple src.verbs += typesof(/mob/test_mob/verb). But, it is not adding any verbs.. I do not know why.. Am I doing this wrong?

Thanks in advance.

-Rcet
You have to loop over it:

for(var/T in typesof(/mob/some_mob/verbs))
src.verbs += T
In response to Nadrew
In that case, Dantom needs to change the example in the help file.

[edit]

That didn't work... I think it may be a bug.. (I tried /mob/some_mob/verb and /mob/some_mob/verbs)

[edit]

-Rcet
In response to Rcet
I found the problem.. For some reason there must be more than one verb in that mob.. I don't know if this is a bug or not.. I think Dantom should check it out.

-Rcet
In response to Rcet
Rcet wrote:
I found the problem.. For some reason there must be more than one verb in that mob.. I don't know if this is a bug or not.. I think Dantom should check it out.

You must be using an old version, because that bug was fixed a few versions back.

Lummox JR
In response to Nadrew
Nadrew wrote:
You have to loop over it:
for(var/T in typesof(/mob/some_mob/verbs))
src.verbs += T

Nope. You can add a list to another list even more quickly and easily than you can add it one at a time.

In this case the problem is that Rcet was using an old version of BYOND with a bug in it.

Lummox JR