|real/string||The ID of the specific entity to check|
|integer/macro||Sets which type of entity to check|
|string||Optional: Sets the character name to check, if entity is an attachment|
Returns the numerical index of the specified entity of the given ID and type, or 'undefined' if the entity or type does not exist.
See Macros & Keywords for a full list of available entity types. In addition to standard types, this script also supports checking the current speaking character(s) which will return the index of the text element containing the speaking character's dialog.