For some reason, I cannot get DreamSeeker to show a list of verbs when I say:
verb
Give_Player_Verb(var/mob/Client/Mob)
var/list/verb_list = typesof(/verb)
var/verb/Verb = input("","",0) in list(verb_list)
Mob.verbs+=Verb
I have also tried:
verb
Give_Player_Verb(var/mob/Client/Mob)
var/verb/Verb = input("","",0) as anything in typesof(/verb)
Mob.verbs+=Verb
and:
Give_Player_Verb(mob/Client/Mob)
Mob.verbs+= input("","") as anything in typesof(/verb)
But I always get this error:
runtime error: wrong type of value for list
proc name: Give Player Verb (/verb/Give_Player_Verb)
usr: Dreq (/mob/Client)
src: Dreq (/client)
call stack:
Dreq (/client): Give Player Verb(Dreq (/mob/Client))
And yes i tried without 'as anything'.. And the list never shows.... Any ides?
ID:147865
Oct 23 2003, 11:05 pm
|
|
In response to Crispy
|
|
Nope, /verb is what I am trying to use. I want to be able to add any verb to the user's verb list.
|
In response to Dreq
|
|
There's a "verbs" list that contains every verb for a given atom.
|
In response to Nadrew
|
|
Well i tried world.verbs, but a no-go.. how else would I allow a user to choose any verb in the game from a list?
|
In response to Dreq
|
|
You'd have to create a prototype of all objects that you want to check, because logically to view something of something else it would have to exist.
var/obj/something/S = new() That would effectivly output all of the object's verbs, b |
Also, surely it should be /mob/verb or /mob/something/verb rather than /verb? =P