Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > set_path_special_object

API Function: set_path_special_object

Summary:
set the object that determines the AUTO object for paths under /usr/game and admin directories.

Defined In LPC Object:
/usr/common/sys/configd.c

Prototype:
void set_path_special_object(object new_obj)

Can Be Called By:
Game

Description:

Sets the path_special object, which ObjectD will call to query AUTO objects. The path_special object must define a path_special function which takes a path string, and returns the path of the appropriate AUTO object. If the path_special object is unset or nil, or if it returns nil, the default AUTO object is used.

This can be used to set the privilege level of different scripts or otherwise change what functions are available to what objects. Be careful having AUTO objects inherit from each other, as this can break security.

Return Value:

None.

Errors:
Normally none.

See Also: