ID:268801
 
i want to make all my admin commands in to 1 list so all i have to do is click the Hud button and a list of my commands will pop up i click which one i want and it opens that command

aNYONE
In response to Dranzer_Solo
obj/adminlist
Click()
proc/asdf = input("ASDF,"ASDF2") in admin.verbs
src.asdf()

Something like that.
In response to Hell Ramen
huh
Dranzer_Solo wrote:
i want to make all my admin commands in to 1 list so all i have to do is click the Hud button and a list of my commands will pop up i click which one i want and it opens that command


If your looking to put the list directly to the screen. I would suggest looking up demos or libs on screen text. Otherwise you can use the input() along with in list(). Or another pre made list and just place that where the list() is.

In response to Green Lime
ok let me restart

I want to take admins commands like

    Summon(mob/M as mob in world)
set category = "Admin"
M.loc=locate(usr.x,usr.y,usr.z)
Teleport(mob/M as mob in world)
set category = "Admin"
usr.loc=locate(M.x,M.y,M.z)


and put them into a list Called GM Commands verb

so when i click on this GM commands verb all the gm commands in my list will show up and i select the command i want to use
In response to Dranzer_Solo
Dranzer_Solo wrote:
ok let me restart

I want to take admins commands like

>   Summon(mob/M as mob in world)
> set category = "Admin"
> M.loc=locate(usr.x,usr.y,usr.z)
> Teleport(mob/M as mob in world)
> set category = "Admin"
> usr.loc=locate(M.x,M.y,M.z)
>
>

and put them into a list Called GM Commands verb

so when i click on this GM commands verb all the gm commands in my list will show up and i select the command i want to use

O.O yea sounds hard any who..
verbs-> The list of verbs defined for the object's prototype.

See what that verbs list can do for you.
What you could do is make a pre list of the verbs list and just remove the verbs u wanted to from it. Umm as to what your probley thinking Im not sure how to do it.

U know make it do that verbs action just by choosing it from the list.

Uhh maybe doing somthing with this new function that was not added long ago text2path(T), T is changed from a text string to the equivalent type path, or null if there is no such type.

Maybe by taking your input() result variable. and var/VerbAct = text2path("[result]") getting you a type path but then what to do with that type path I havent a clue.
In response to Green Lime
yeh neither do i lol
In response to Dranzer_Solo
Well, first, we need to make a list of Administrative Commands, so...

mob/Admin/verb//Just some examples
Summon(mob/M as mob in world)
M.loc=loc
Teleport(mob/M as mob in world)
loc=M.loc
Fly()
density=!density//Toggle density

mob/verb/Admin_Commands()
var/list/aCommands=list()//Make a list
aCommands+=typesof(/mob/Admin/verb/)//Fill the list with Admin Commands


Then, you'll need to use input() to choose your verb, and after that, you'll need to use call().
var/aAction=input("What would you like to do, Admin?","Admin") as null|anything in aCommands
call(aAction)()


Of course, you'll need to put everything in t suit your game's specific needs, but that's basically waht you'll have to do.
In response to Wizkidd0123
ok thanks under stood some of it then re read it and i understand it better now

accpet now everyimte i use that call it says

pages\Verbs.dm:73:error:aAction:value not allowed here
pages\Verbs.dm:73:error:call :instruction not allowed here
In response to Dranzer_Solo
Dranzer_Solo wrote:
ok thanks under stood some of it then re read it and i understand it better now

accpet now everyimte i use that call it says

pages\Verbs.dm:73:error:aAction:value not allowed here
pages\Verbs.dm:73:error:call :instruction not allowed here



i almost got it working
Here is what you want I think: http://developer.byond.com/hub/Zaltron/ButtonMod
I made this awhile back and never got back to fixing any errors that were in it but for the most part it works. I'll fix it up when ever I get my computer up and working.