ISXEQ2:CustomActor (Top-Level Object)

From ISMods Wiki


Contents

ISXEQ2 information for ISXEQ2:CustomActor (Top-Level Object) has moved

Please see: http://eq2.isxgames.com/wiki for up-to-date content.


Description

Retrieves an actor object from a custom actor array.


Notes:

  • To create a custom actor array, use the following EQ2 Method:

EQ2:CreateCustomActorArray[<sortmethod>]

  • To determine the number of actors in the custom actor array, use the following EQ2 Member:

${EQ2.CustomActorArraySize}


Forms

Retrieves the actor object by its location in the custom actor array
  • actor CustomActor[<parameter>,...]


Parameters

  • pc
Returns the nearest PC
  • npc
Returns the nearest NPC
  • tsunit
Returns the nearest tradeskill unit
  • resource
Returns the nearest resource node
  • nokillnpc
Returns the nearest NOKILLNPC
  • special
Returns the nearest special actor
  • level,#
Returns the nearest actor that is of the level given
  • levels,#,#
Returns the nearest actor that is of a level between the two numbers given
  • id,#
Returns the actor with the ID number that matches the one given
  • notid,#
Excludes the actor with the ID number that matches the one given
  • class,<string>
Returns the nearest actor of the class given (case insensitive)
  • race,<string>
Returns the nearest actor of the race given (case insensitive)
  • radius,#
Returns the nearest actor within the given three-dimensional radius (Your character being the center, out to the range specified.)
  • radiusr,#,#
Returns the nearest actor within the given three-dimensional radius (The first number being the inner range and second number being the outer range.)
  • xzrange,#
Returns the nearest actor within the given two-dimensional radius (range) from your present position. Currently, 'range' is aliased to be equivalent to 'xzrange'
  • yrange,#
Returns the nearest actor within the given radius (range) on the Y-axis from your present position. In EQ2, the Y-axis is elevation.
  • nopcnear [,#]
Returns the nearest actor for which there is no PC within the given radius from it. If no argument is given, then it defaults to a range of 100.
  • loc,#,# [,#]
Returns the actor that is at the location given. If two values are given, they are assumed to be in the order: X,Z. If three values are given, they are assumed to be in the order: X,Y,Z.
  • <string>
Returns the nearest actor with a name that contains the string given (case insensitive)

Examples

  • ${CustomActor[3]}
returns the fourth actor in the custom actor array
  • ${CustomActor[npc]}
  • ${CustomActor[npc,level,14]}
  • ${CustomActor[pc,levels,14,16,radius,20]}
  • ${CustomActor[npc,radius,20,class,Guardian]}
  • ${CustomActor[npc,radiusr,20,40,class,Guardian]}
  • ${CustomActor[an oakmyst fawn,radiusr,20,40,notid,221234]}
  • ${CustomActor[billy]}

(Please note that commas must seperate all arguments.)

See Also