Sgyotb Stage
Based on game build 714014 | Last updated: 2026-03-08
Overview
SGyotb_stage is a StateGraph definition that governs the visual and behavioral states of the YOTB stage booth entity. It coordinates animations, sounds, and timing to reflect the booth's operational state (e.g., idle, arriving, speaking, tossing prizes). It integrates with yotb_stagemanager to determine global contest status and with talker and yotb_stager to trigger voice lines and prize distribution, respectively.
Usage example
This stategraph is automatically assigned to the YOTB stage booth entity via the game's prefabs (e.g., yotb_stage.lua). No direct instantiation or configuration is required from modders.
Dependencies & tags
Components used: talker, yotb_stager, yotb_stagemanager (accessed via TheWorld.components)
Tags: busy, open, ready, closed — applied dynamically via state tags.
Properties
No public properties. State definitions and behaviors are encoded in the states and events tables.
Main functions
No public functions. This is a pure StateGraph definition file; functionality is realized through state callbacks and event handlers.
Events & listeners
-
Listens to:
trader_arrives→ transitions toarrivetrader_leaves→ transitions toleavecontestdisabled→ transitions toidle_closed_ready_pstcontestenabled→ transitions conditionally toidle_closed_ready_resetoridle_closed_ready_preontalk→ transitions totalk(if notbusy)onflourishstart→ transitions toflourish_startonflourishend→ transitions toflourish_endyotb_throwprizes→ transitions tothrowprizes
-
Pushes:
yotb_advance_queue→ fired from multipleonexithandlers to notify the stage manager that this entity is ready for the next action.