%getEntityVar()

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

    Retrieves the value of the variable with name varName that is within the
variable context of the entity. The entity may be a pointer to a room,
mob, or object. It may also be a keyword of a mob or object. If the
entity is not valid then the value is retrieved from the global variable
context.

Example:

@questStage = %getEntityVar( @n, questStage )