The `creature_text_options` table
This table assigns a reusable option ruleset (defined in creature_text_option_sets) to a specific (CreatureID, GroupID) pair from creature_text. This enables data-driven control of cooldown, trigger chance, and player-only filtering for SendChat() calls without requiring per-script boilerplate.
When SendChat() is called for a creature text group, the engine automatically:
Cooldown > 0).TriggerChance to decide whether the text fires.PlayerOnly = 1).If any check fails, the text is silently skipped. If all checks pass, the text fires and the cooldown timer is started.
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| CreatureID | INT | UNSIGNED | PRI | NO | |||
| GroupID | TINYINT | UNSIGNED | PRI | NO | |||
| OptionSetID | TINYINT | UNSIGNED | NO |
The entry of the creature from creature_template.entry to which this option assignment applies.
The text group ID from creature_text.GroupID to which this option assignment applies.
The ID of the ruleset from creature_text_option_sets.SetID that defines the cooldown, trigger chance, and player-only behaviour for this (CreatureID, GroupID) pair.