JS-GLOBAL-VARIABLES
Inside Arcane Ages JavaScript behaviors, there are several global variables defined that represent players in an event:
actor | Represents the actor in the current event. |
self | Represents the element the behavior is attached to. |
subject | Represents the subject of the current event. |
event | Represents the current event object. |
aura | Represents the current aura whenever aura-behaviors are entered. |
If a specified variable doesn't apply, the variable will be null (for example, many events don't have a corresponding subject). Also, the class of the variable will vary depending on the circumstances (for example, the actor could be a character or object).