This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
entity [2020/01/25 11:55] – justin | entity [2021/06/16 15:25] – 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 to which the script was assigned.|play_animation(self, | + | |Self|The entity to which the [[script]] was assigned.|play_animation(self, |
- | |Player|The | + | |Player|The |
- | |Tile by Coordinate|The tile at the specified XYZ coordinate.|tile[2, | + | |Tile by Coordinate|The |
- | |Party Member | + | |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 " |