SpeechLine ​
Inherits: Resource
A line: something an entity says, or something that is described. Say and emote are one thing with a kind: a line has a text, an optional animation and sound, and an audience (who receives it). NPC behavior tasks, combat actions, event actions and interactions each hold one and hand it to SpeechDelivery. See docs: Chat > Lines.
Properties ​
Kind | kind | Kind.SAY |
String | text | "": |
int | emote_id | 0 |
AnimationSelectionSocial | animation | |
SFXSelection | sound | |
int | language_id | 0 |
Audience | audience | Audience.NEAR |
float | range_override | 0.0 |
int | trigger_area_id | 0 |
float | bubble_seconds | 5.0 |
Methods ​
String | get_channel_id() |
Enumerations ​
enum Kind ​
The kind of line: it decides the channel the line is written in
- SAY =
0- Something said (the Say channel: "Guard says: Halt!") - YELL =
1- Something shouted (the Yell channel, heard farther) - EMOTE =
2- Something described (the Emote channel: "The guard yawns.")
enum Audience ​
Who receives the line
- NEAR =
0- The players within the range of the channel of the line, from the one who says it (or from the point) - EVERYONE =
1- Every player - TRIGGER_AREA =
2- The players who are in a trigger area - TRIGGERER =
3- The player who used the switch or talked to the NPC
Property descriptions ​
Kind kind = Kind.SAY ​
Say, yell or emote
String text = "": ​
The text of the line. Words in angle brackets are filled in: <user> (who says it), <target name>, <player name>. Empty with an emote picked: the text of the emote
int emote_id = 0 ​
An emote of the library (the id of an Emote): the line takes its texts, animation and sound from it, unless this line has its own. 0 = a line of its own
AnimationSelectionSocial animation ​
The animation the speaker plays (optional; an emote has its own)
SFXSelection sound ​
The sound: a voice line (played on the Voice channel, with its subtitle) or a sound effect (optional; an emote has its own)
int language_id = 0 ​
The language the line is in (the id of a proficiency that is a language). 0 = the language the speaker speaks. A listener who does not understand it fully reads it garbled. Emotes have no language
Audience audience = Audience.NEAR ​
Who receives the line
float range_override = 0.0 ​
For Near: how far the line is heard, in metres. 0 = the range of the channel (or of the emote)
int trigger_area_id = 0 ​
For Trigger area: the trigger area the players have to be in
float bubble_seconds = 5.0 ​
How long the speech bubble over the head of the speaker stays, in seconds. 0 = no bubble
Method descriptions ​
String get_channel_id() ​
The id of the channel the line is written in