%getPlayerVar()

Aliases%getPlayerVar( )
Parametersmixed @entity, string @varName

    Retrieves the value of the variable that is within the saved player file
persistence context of the entity. Since rooms cannot be saved to player
files and there can only ever be one instance of a room with a given vnum,
this function has identical functionality to the %getSavedVar() function
when applied to a room. The entity may be a pointer to a room, mob, or
object. It may also be a keyword of a mob or object or the vnum of a room.
If the variable is not found then null is returned. These variables are
saved in the player's data file and are restored whenever the player
re-enters the game.

Example:

%getPlayerVar( @n, lastEnteredSkurvash )