ID:150900
 
okay, i read up on my previous posts and the replies to 'verbs' but didn['t gain much. I was just wondering how I woudl store a verb in a list or array(? is it possible?) and ten cycle thru them and add certian one, or possibly add all of em. I apologize if some one alrady answered this in my previous verb posts.

right now I have:

mob/player/imm_commands/verb
verb...
verb...
verb...

i tried: usr.verbs+=/mob/player/imm_commands

but it did not work. i think itd be a pretty good idea to implement. easily add verbs liek that. or perhaps you can and i am just doing something. anyhow, I was hopin you DM masters could help me. once again, i apologize if this has already been aswered.
but it did not work. i think itd be a pretty good idea to implement. easily add verbs liek that. or perhaps you can and i am just doing something. anyhow, I was hopin you DM masters could help me. once again, i apologize if this has already been aswered.

Nope, hasn't been answered, but I just thought up of a nifty trick to handle this:

mob/proc/add_verbs(type)
var/L = typesof(type) - type
for(var/V in L)
src.verbs += V

Then just call add_verbs(/mob/player/imm_commands) and you'll have 'em all.

...Hmm, I'd better tweak s_admin to take advantage of that! And yes, to be compatible with the furckin' CharacterHandling.
In response to Spuzzum
On 7/6/01 11:29 pm Spuzzum wrote:
but it did not work. i think itd be a pretty good idea to implement. easily add verbs liek that. or perhaps you can and i am just doing something. anyhow, I was hopin you DM masters could help me. once again, i apologize if this has already been aswered.

Nope, hasn't been answered, but I just thought up of a nifty trick to handle this:

mob/proc/add_verbs(type)
var/L = typesof(type) - type
for(var/V in L)
src.verbs += V

Then just call add_verbs(/mob/player/imm_commands) and you'll have 'em all.

...Hmm, I'd better tweak s_admin to take advantage of that! And yes, to be compatible with the furckin' CharacterHandling.


awsome! -worship- you da man!
In response to XgavinX
On 7/6/01 11:31 pm XgavinX wrote:
On 7/6/01 11:29 pm Spuzzum wrote:
but it did not work. i think itd be a pretty good idea to implement. easily add verbs liek that. or perhaps you can and i am just doing something. anyhow, I was hopin you DM masters could help me. once again, i apologize if this has already been aswered.

Nope, hasn't been answered, but I just thought up of a nifty trick to handle this:

mob/proc/add_verbs(type)
var/L = typesof(type) - type
for(var/V in L)
src.verbs += V

Then just call add_verbs(/mob/player/imm_commands) and you'll have 'em all.

...Hmm, I'd better tweak s_admin to take advantage of that! And yes, to be compatible with the furckin' CharacterHandling.


awsome! -worship- you da man!

Er, the example should be

add_verbs(/mob/player/imm_commands/verb)
In response to Spuzzum
mob/proc/add_verbs(type)
var/L = typesof(type) - type
for(var/V in L)
src.verbs += V

doesn't seem to work... (?)
In response to Spuzzum
On 7/6/01 11:39 pm Spuzzum wrote:
On 7/6/01 11:31 pm XgavinX wrote:
On 7/6/01 11:29 pm Spuzzum wrote:
but it did not work. i think itd be a pretty good idea to implement. easily add verbs liek that. or perhaps you can and i am just doing something. anyhow, I was hopin you DM masters could help me. once again, i apologize if this has already been aswered.

Nope, hasn't been answered, but I just thought up of a nifty trick to handle this:

mob/proc/add_verbs(type)
var/L = typesof(type) - type
for(var/V in L)
src.verbs += V

Then just call add_verbs(/mob/player/imm_commands) and you'll have 'em all.

...Hmm, I'd better tweak s_admin to take advantage of that! And yes, to be compatible with the furckin' CharacterHandling.


awsome! -worship- you da man!

Er, the example should be

add_verbs(/mob/player/imm_commands/verb)

hehe, okay. lemme try it. =P
In response to XgavinX

add_verbs(/mob/player/imm_commands/verb)


still no dice...
In response to XgavinX
still no dice...

I'll whip up a test case and see how it goes.

It might wind up being a feature request...
In response to Spuzzum
On 7/6/01 11:54 pm Spuzzum wrote:
still no dice...

I'll whip up a test case and see how it goes.

It might wind up being a feature request...

Anyhoo, until then, you'd have to do it all manually. =P

usr.verbs += /mob/player/imm_commands/verb1
usr.verbs += /mob/player/imm_commands/verb2
//...

I believe Guy had a "verbs package" snippet in the old hub... maybe he can be encouraged to reupload?
In response to Spuzzum
On 7/6/01 11:57 pm Spuzzum wrote:
On 7/6/01 11:54 pm Spuzzum wrote:
still no dice...

I'll whip up a test case and see how it goes.

It might wind up being a feature request...

Anyhoo, until then, you'd have to do it all manually. =P

usr.verbs += /mob/player/imm_commands/verb1
usr.verbs += /mob/player/imm_commands/verb2
//...

I believe Guy had a "verbs package" snippet in the old hub... maybe he can be encouraged to reupload?

thanks.
k