A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/efun/this_player


object this_player()

Returns the object that 'activated' your function by an
add_action()-trap or similar. This might be the user typing
a command that you have defined, but just aswell be a
monster! The naming is a bit incorrect, the efun should
probably be called this_actor().

'this_player()', the command giver, has effects upon many
functions. For instance write() is just like tell_object(
this_player(), ...) while say() is the tell_room() without
this_player.

If you look for the user who activated something,
and be sure not to get the monster (e.g. during a fight)
you probably want to use this_interactive().

See also:


This page was generated in LPC

Imprint / Impressum