mob //note its all commentted out cuz i could never get it working var c al = 0 pcom scom verb /* Primary_Command() if(usr.pcom != null) new( Secondary_Command() if(usr.scom != null) */ Change_Primary_Command() var/Clist = list() for(var/verb/o in usr.verbs) Clist += o pcom = input("What Command would you like for you primary command (The spacebar key)")in Clist Change_Secondary_Command() var/Clist = list() for(var/verb/o in usr.verbs) Clist += o scom = input("What Command would you like for you secondary command (The z key)")in Clist
ID:165117
![]() Feb 19 2007, 5:57 pm
|
|
this is my code i know its in the complete wrong way but ya no i tried, he im still a byond newbie
|
![]() Feb 19 2007, 6:03 pm
|
|
You need to take a look at the call() and hascall() functions.
|
mob hope that helps. |
You can call verbs exactly the same as you can call procs (actually, verbs ARE procs but just with some added extras).
However, when calling procs, you'd have to specify the args yourself, using the 'as blabla in' notation does nothing in that case, you'd have to manually use input(). You may also need to pass the correct value to 'usr', not with mob/verb's though (use 'src' in the verb instead of 'usr'). |