@Creepy said:
You know what I always needed help with? Finding rooms. I know there are search commands and whatnot but sometimes the help files read like a foreign language as I have no coding background.
For example, if I want a list of all room dbrefs, what would I type, exactly?
@search type=room
The rest of these mostly want to find an object of a particular type and then do some check with it. So here are your <thing> + <do> searches:
EOBJECT - A combination of TYPE=OBJECT and EVAL=<restriction>.
ETHING - An alias for OBJECTS.
EROOM - A combination of TYPE=ROOM and EVAL=<restriction>.
EEXIT - A combination of TYPE=EXIT and EVAL=<restriction>.
EPLAYER - A combination of TYPE=PLAYER and EVAL=<restriction>.
PARENT - Restricts to the parent designated by <restriction>.
ZONE - Restricts to the zone designated by <restriction>.
If I want a list of all rooms with a certain parent, such as an outdoor parent, what would I type?
To get the outdoor parent's dbref (or find any object with a given name)
@find Outdoor Parent
Then, if the Outdoor Parent's dbref is #25, for example:
@search parent=#25
How about a search for any rooms or exits without some attribute set? Say, desc or odrop? Then I could plow through to see what areas I haven't finished yet.
We'll use eroom
and eexit
for these:
@search eroom=not(get(##/desc))
@search eexit=not(get(##/odrop))
How can I use basic commands, such as @desc here, without being in the room? @desc dbref#=Text here?
You got it.
ETA: This may have been better as part of a more thorough tutorial. I have a different one lined up right now (part of which @Cobaltasaurus has now kindly already covered for me), but I'll keep this one in mind too.