SEARCH CLASSES
SEARCH CLASSES
You may use the following classes in @search commands and search() function calls:
| Class | Description |
|---|---|
| TYPE | Restricts to objects of the indicated type (OBJECTS, ROOMS, EXITS, PLAYERS). THINGS may be used as an alias for OBJECTS. |
| NAME | Restricts to objects whose names start with the restriction. |
| OBJECTS | A combination of TYPE=OBJECT and NAME=restriction. |
| THINGS | An alias for OBJECTS. |
| ROOMS | A combination of TYPE=ROOM and NAME=restriction. |
| EXITS | A combination of TYPE=EXIT and NAME=restriction. |
| PLAYERS | A combination of TYPE=PLAYER and NAME=restriction. |
| FLAGS | Restricts to objects which have the flags listed in the restriction set. |
| POWER | Restricts to objects which have the specified power. |
| EVAL | Evaluates the restriction for each object, replacing ## with the object’s database number. Evaluations that return TRUE (ie, not 0 or #-1) are selected. |
| ZONE | Restricts to objects that are in the indicated zone. |
| EOBJECT | A combination of TYPE=OBJECT and EVAL=restriction. |
| ETHING | An alias for EOBJECT. |
| 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 the restriction. |