Usage: context <number>
* This little trigger will make sure one %has_said_hello% exist for each player.
context %actor.id%
set has_said_hello 1
global has_said_hello
* now only triggers running with context = %actor.id% can access this particular
* variable. however - it is a better idea to use vars set on players: help remote.
Changes the "context" of a trigger to this value. When first run, a trigger's
context is 0. When a variable is made global, it is given the current context.
When a variable is accessed, if it must be searched for globally, a "found"
variable must either have context 0 or the current context. The net result of
this is you may have many global variables in a single trigger, with the same
name, differing only by context. Players may have variables; this mostly
removes the need for variable context. Previously, a player's ID could be used
as variable context to allow a trigger to service multiple players at once.
Example: TSTAT 23612, 13495
See also:: REMOTE