Sets the value of the variable with name varName that is within the variable context of the entity. If the variable does not exist then a new one is created in the 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 assigned to the global variable context. This function is better than using the "setvar" mud command since it guarantees the variable's value is update immediately. Commands issued by the owner to the mud interpreter are queued for each execution window a script's process is given and evaluated when the execution window closes.
Example:
%setEntityVar( @n, questStage, "getting statue" ) |