ID:145918
 
Code:
        Check_Card(obj/Cards/ in world)
set desc="View the stats of a Card"
usr.CheckCard=1
Card2Usr(Cards)


Problem description:

That compiles ok, but it doesn't work.. It just acts like "obj/Cards/" and "Cards" are just "obj"

How can I get a verb to look in a certain group like obj/Cards instead of just obj?
obj/Cards/verb
Check_Card()
set desc="View the stats of a Card"
set src in world
//... whatever else you want this to do

How can I get a verb to look in a certain group like obj/Cards instead of just obj?

As long as it exists somewhere in the world, you could do that. This way, the verb is only associated with cards. but because src is set to "in world", it can be accessed from anywhere. I'm not quite sure what you want your verb to do, but in this case, usr will be the player using the verb, and src will be the /obj/Cards they're "checking".
In response to DerDragon
Thanks, it worked!

But now.. How about with this?

mob
verb
Whisper(mob/M in PlayerList, msg as text)
set desc="Whisper a message to another Player"
M<<"<font color=blue>[usr.name] whispers to you: \"[msg]\""
usr<<"<font color=green>You whispered to [M]: \"[msg]\""


how can I get it to just work on other Players, and not all mobs? (PlayerList is a list variables that stores all the Players in the game so yeah)
In response to MartialArtistAbu
mob/players/M in world?
In response to MartialArtistAbu
You could use client >_>.
In response to Sniper Joe
Try this:
mob
verb
Whisper()
set desc="Whisper a message to another Player"
var/list/Players = list()
for(var/mob/M in world)
if(M.client && M.key)
Players.Add(M)
Players.Remove(src) // this is so you are not in the list.
var/Player = input("Who do you want to whisper to?","Whisper To")as null|anything in Players
if(!Player) return
var/msg = input("What would you like to whisper to [Player]?","Whisper") as null|text
if(!msg) return
Player << "<font color=blue>[usr.name] whispers to you: \"[msg]\""
usr << "<font color=green>You whispered to [Player]: \"[msg]\""
In response to Y2kEric
It worked ^^ thanks~
In response to MartialArtistAbu
no problem.