This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| entity [2020/04/21 10:12] – justin | entity [2024/01/30 15:22] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | **Entity** is a generic term that refers to a [[tile]], [[object]], | + | **Entity** is a generic term that refers to a [[tile]], [[object]], [[character]], or [[effect]] 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. |
| ^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 [[tile]] at the specified XYZ [[coordinate]].|tile[2, | ||
| |Initiator|The [[character]] who triggered the [[script]] through interaction.|damage_entity(initiator, | |Initiator|The [[character]] who triggered the [[script]] through interaction.|damage_entity(initiator, | ||
| - | |Party Member|The party member with the specified member ID.|heal_entity(party.member[" | + | |Party Member|The party member with the specified member ID. Supplying a member ID of " |