$(field .field ... .field)
Each field is chained together using periods, either being a variable reference or one of the valid fields for the current type. Use the lists for valid fields. Types with "variables: yes" allow variable references. The first field must be a PRIMARY field or a variable reference.
referencing the SELF of the script
getting the primary weapon of the enactor
accessing variables within an entity
The name must be a valid variable name. Look at VARIABLE type casts
for type keywords. These are needed so the processing knows what the variable SHOULD be. The variable is searched in the list of the parent, or the SELF of the script if the first field of the expansion.
getting a mobile variable "targ" from SELF's variable list.
getting a room variable "loc" from the enactor.