ID:150847
 
how would i make a proc/verb target ONLY a player?
On 7/18/01 12:04 pm XgavinX wrote:
how would i make a proc/verb target ONLY a player?

Are players a unique mob type? If so, you can specify that.

If not, you can create a function that returns a list of players and use that in the argument. (Others who do this more often can provide code snippets...)
In response to Deadron
On 7/18/01 5:02 pm Deadron wrote:
On 7/18/01 12:04 pm XgavinX wrote:
how would i make a proc/verb target ONLY a player?

Are players a unique mob type? If so, you can specify that.

If not, you can create a function that returns a list of players and use that in the argument. (Others who do this more often can provide code snippets...)

yes, i do things liek this:

mob - hase stats that npc and players can use
mob/npc - non player characters only
mob/player - player characters only.
In response to XgavinX
On 7/18/01 5:10 pm XgavinX wrote:
Are players a unique mob type? If so, you can specify that.

yes, i do things liek this:

mob - hase stats that npc and players can use
mob/npc - non player characters only
mob/player - player characters only.

Okay then it should work to have a verb target specified like so:

mob/player/verb/whassup(mob/player/aplayer in oview())

and only players will be targetted I think. But this isn't something I play with a lot, so I could be wrong.
In response to Deadron
On 7/18/01 5:15 pm Deadron wrote:
On 7/18/01 5:10 pm XgavinX wrote:
Are players a unique mob type? If so, you can specify that.

yes, i do things liek this:

mob - hase stats that npc and players can use
mob/npc - non player characters only
mob/player - player characters only.

Okay then it should work to have a verb target specified like so:

mob/player/verb/whassup(mob/player/aplayer in oview())

and only players will be targetted I think. But this isn't something I play with a lot, so I could be wrong.

se, i'm making a boot command. pretty simple eh?

mob/player/imm_commands/verb/boot_player()

i think i can use what youg ave me above, sorta like i did with an NPC command.
In response to XgavinX
On 7/18/01 5:18 pm XgavinX wrote:
se, i'm making a boot command. pretty simple eh?

mob/player/imm_commands/verb/boot_player()

i think i can use what youg ave me above, sorta like i did with an NPC command.

If it's a boot command, in world will probably do better than in oview().
In response to Cinnom
On 7/18/01 5:24 pm Cinnom wrote:
On 7/18/01 5:18 pm XgavinX wrote:
se, i'm making a boot command. pretty simple eh?

mob/player/imm_commands/verb/boot_player()

i think i can use what youg ave me above, sorta like i did with an NPC command.

If it's a boot command, in world will probably do better than in oview().

thats what i did... its works okay. thanks guys for helping me.