ARTIFACTS (AR)
RECEIVER

Used to modify the attributes of an artifact or resource at the specified location or with a specified reference number.

 
!!AR#1/#2/#3:XXXX; Artifact OR resource at x,y,l coordinates
Artifact :
Format A1 (Artifacts are Type 5, Scrolls are Type 93)
Resource : Format R (Resources are Type 79)
!!AR$:XXXX; New style for AR receiver - indexed.
Coordinates are in v[$],v[$+1],v[$+2]
!!AR#:XXXX; Artifact OR resource with # (integer value) as 1st text in message box
This syntax is an old style and is no longer supported.

OPTIONS

G#1/$2/$3; Set/Check/get the guardian monster in position #1 (from 0 to 6) of type $2 (Format C) and number $3. This only saves the guardians but does not turn them on. Use X option to turn them on.
Check possibilities when placed asterisk.
M^TEXT^; Set message text to TEXT. The text's length may exceed the original one. It may contain any symbols except ^ and the semicolon.
M#; Set message text to that of the timed event number #.
M-1; Restores default message for artifact.
Mz#; Set/Get message text from string variable.
M1/$;
M1/-1
;
Set and  get the string parameters. You can use it when M command is used to set name/message.
  
M1/$; - $ = Index of string var
  
M1/-1; - Disable (restore default) message.
Now you can not only set but also get the string parameters. You can use it when M command is used to set name/message.
V$; Set/Check/get the number of spell to set up the Scroll. Format SP
When used with a resource, sets/checks/gets amount of resource.
X#; Turn the guardians on if # is non-zero, otherwise turn them off. The check for the presence of the guardians is not made. So it must be set by G#1/$2/$3 option or preset with the map editor.

Comments:
Artifacts and resources share common ERM numbering.

Important Note:
Most of these commands will not work on an artifact or resource pile unless the artifact has some setup already done in the editor. This can be as simple as clicking the customize checkbox on the Guardians tab of the artifact or resource. If the artifact or resource pile has no setup, the command will generate an ERM error message. However, the V$ command will work correctly even if the scroll or resource does not have any setup.