User Tools

Site Tools


entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
entity [2020/01/25 12:03] justinentity [2020/04/21 10:13] 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 "Entity", either one of these types can be supplied or just the ID of the entity as a [[string]].
  
 ^Reference Type^Description^Example^ ^Reference Type^Description^Example^
Line 10: Line 10:
 |Tile by Coordinate|The [[tile]] at the specified XYZ [[coordinate]].|tile[2, 4, 0]| |Tile by Coordinate|The [[tile]] at the specified XYZ [[coordinate]].|tile[2, 4, 0]|
 |Initiator|The [[character]] who triggered the [[script]] through interaction.|damage_entity(initiator, 2)| |Initiator|The [[character]] who triggered the [[script]] through interaction.|damage_entity(initiator, 2)|
-|Party Member by ID|The party member with the specified member ID.|heal_entity(party.member["Sarah"], 5)|+|Party Member|The party member with the specified member ID.|heal_entity(party.member["Sarah"], 5)|
  
entity.txt · Last modified: 2024/01/30 15:22 by justin