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
ID:268801
![]() Nov 18 2004, 3:38 pm
|
|
![]() Nov 19 2004, 1:00 pm
|
|
aNYONE
|
obj/adminlist
Click() proc/asdf = input("ASDF,"ASDF2") in admin.verbs src.asdf() Something like that. |
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. |
ok let me restart
I want to take admins commands like Summon(mob/M as mob in world) 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 |
Dranzer_Solo wrote:
ok let me restart > Summon(mob/M as mob in world) and put them into a list Called GM Commands verb 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. |
Well, first, we need to make a list of Administrative Commands, so...
mob/Admin/verb//Just some examples 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 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. |
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 |
Dranzer_Solo wrote:
ok thanks under stood some of it then re read it and i understand it better now 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. |