Speech Warly
Based on game build 714014 | Last updated: 2026-03-10
Overview
The Speech Warly component implements Warly's character-specific dialogue system, responsible for selecting and triggering context-aware spoken lines during gameplay. It integrates with the entity's state, inventory, and environment to ensure appropriate narrative and comedic lines are delivered. As part of DST's Entity Component System, it is attached to Warly's player entity and listens for internal and external events to determine when speech opportunities arise.
Usage example
local speech = inst.components.speech_warly
if speech ~= nil then
speech:PushSpeech("SPEECH_HELLO") -- Triggers a greeting line
speech:SayLine("HAPPY", "SPEECH_COOKING") -- Speaks a cooking-related line with Happy emotion
end
Dependencies & tags
Components used: None identified
Tags: None identified
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
| None found | — | — | — |
Main functions
No functions are found across any chunk.
Events & listeners
No events are found across any chunk.