The `creature_text_option_sets` table
This table defines reusable option rulesets for creature text groups. Each ruleset controls cooldown, trigger chance, and player-only filtering for SendChat(). Rulesets are assigned to specific (CreatureID, GroupID) pairs via the creature_text_options table.
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| SetID | TINYINT | UNSIGNED | PRI | NO | |||
| Cooldown | INT | UNSIGNED | NO | 0 | Group cooldown in milliseconds before it can fire again | ||
| TriggerChance | TINYINT | UNSIGNED | NO | 100 | 0-100 percent chance to fire at all | ||
| PlayerOnly | TINYINT | UNSIGNED | NO | 0 | Only fire if target is a player | ||
| comment | VARCHAR(255) | YES |
Unique identifier for this option ruleset. Referenced by creature_text_options.OptionSetID.
The minimum time in milliseconds that must pass before the same text group can fire again on a given creature. Set to 0 to disable cooldown enforcement.
A percentage value from 0 to 100 that represents the chance the text group will be triggered at all. A value of 100 means the text always fires when called; a value of 30 means it fires approximately 30% of the time.
When set to 1, the text group will only fire if the target that triggered it is a player. When set to 0, the text will fire regardless of target type (players, pets, guardians, etc.).
An optional human-readable label for this ruleset.