Actor (Top-Level Object)

Description

Retrieves an actor object from the game world.

Forms

  • actor Actor[#]
    • Retrieves the actor object by ID number.
  • actor Actor[Query, <Query String>]
    • Using a Lavishscript Query String allows script writers to search based on ANY of the datatypes members.   For more information, see the LavishScript Query Strings Knowledgebase Article here on Forge.
      • Please note that all string literals within query strings must be enclosed in quotation marks.  For example: ${Actor[Query, Name =- "Aliindar"]}

Examples

  • ${Actor[Query, Type =- "NPC"]}
  • ${Actor[Query, Type =- "NPC" && Level == "14"]}
  • ${Actor[Query, Type =- "PC" && (Level <= 16 && Level >= 14) && Distance <= "20"]}
  • ${Actor[Query, Type =- "NPC" && Distance <= "20" && Class =- "Guardian"]}
  • ${Actor[Query, Type =- "NPC" && (Distance <= "40" && Distance >= "20") && Class =- "Guardian"]}
  • ${Actor[Query, Name =- "an oakmyst fawn" && (Distance <= "40" && Distance >= "20") && ID != "221234"]}
  • ${Actor[Query, Name =- "billy"]}
  • ${Actor[Query, Name =- "billy"].Target}
    • Returns Billy's target
  • ${Actor[Query, Name =- "billy"].Target.Target}
    • Returns the target of Billy's target
Add picture from clipboard (Maximum size: 95.4 GB)