Skip to main content

this_player

Discworld driver help

this_player

Name

this_player() - return the object representing the current interactive

Synopsis

object this_player( int flag );

Description

Return the object representing the user that caused the calling function to be called. Note that this_player() may return a different value than this_object() even when called from within a user object. If this_player() is called as this_player(1) then the returned value will be the interactive that caused the calling function to be called. this_player(1) may return a different value than this_player() in certain cases (such as when command() is used by an admin to force a user to perform some command). Observe that the name is slightly misleading; this_player() doesn't need to be an actual player.

See also

this_interactive()