This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
entity [2017/06/12 16:25] – justin | entity [2021/06/16 14:59] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | **Entity** is a generic term that refers to a tile, object, or character within the current scene. In the context of scripting, it is a variable type that's used to reference entities by several possible methods. These are described in the table below. | + | **Entity** is a generic term that refers to a [[tile]], [[object]], or [[character]] within the current scene. In the context of scripting, it is a variable type that's used to reference entities by several possible methods. These are described in the table below. If the argument type for a scripting function is " |
^Reference Type^Description^Example^ | ^Reference Type^Description^Example^ | ||
|Entity by ID|The entity with the specified unique ID.|look_at_target(entity[" | |Entity by ID|The entity with the specified unique ID.|look_at_target(entity[" | ||
- | |Self|The entity | + | |Self|The entity |
- | |Player|The | + | |Player|The |
+ | |Tile by Coordinate|The [[tile]] at the specified XYZ [[coordinate]].|tile[2, | ||
+ | |Initiator|The [[character]] who triggered the [[script]] through interaction.|damage_entity(initiator, | ||
+ | |Party Member|The party member with the specified member ID. Supplying a member ID of " |