Skip to content

creature_text

This table holds all the speech text (whisper, say, yell, emote text in speech bubbles and in the chat window) and corresponding sounds or emote (if any) used within smart_scripts table and core scripts.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
CreatureIDintunsignedPRINO0
GroupIDtinyintunsignedPRINO0
IDtinyintunsignedPRINO0
TextlongtextYESNULL
TypetinyintunsignedNO0
LanguagetinyintsignedNO0
ProbabilityfloatNO0
EmoteintunsignedNO0
DurationintunsignedNO0
SoundintunsignedNO0
BroadcastTextIdintsignedNO0
TextRangetinyintunsignedNO0
commentvarchar(255)YES''
 

Description of fields ​

CreatureID ​

This is the creature_template.entry to which the script is linked to.  

GroupID ​

If there is more than one of the same entry (more than one text the creature says), this column is used to choose if it is a random say or an ordered list. If a creature has got more than one say text to be shown in a given order, it must be incremented for each new matching entry (ex. 0, 1, 2, 3...). If there is only one entry or only one group, this value should be 0. If there are multiple groups of texts, this value stays the same within the group while the id increments within the same group.  

ID ​

Entry for each group of texts. This is the unique identifier when entry (creature) is the same and GroupID is unchanged, it must be incremented (ex. 0, 1, 2, 3...). A creature say will be randomly selected from this list based on the groupid it belongs to.  

Text ​

The text the creature will say.  

Type ​

ValueOld ValueDescriptionExample
120Say
Creature says: Say
141Yell
Creature yells: Yell
162Emote
Creature gestures wildly
413Boss Emote
Boss Emote
154Whisper
Creature whispers: Whisper
425Boss Whisper
Boss Whisper

 

Language ​

A Language ID. When set to 0, the current default language will be used.

IDLanguageIDLanguage
1Orcish12Kalimag
2Darnassian13Gnomish
3Taurahe14Troll
6Dwarvish33Gutterspeak
7Common35Draenei
8Demonic36Zombie
9Titan37Gnomish Binary
10Thalassian38Goblin Binary
11Draconic

 

Probability ​

A value from 1–100 that represents the percentage chance that this text will be executed.  

Emote ​

The Emote ID that the creature plays when the text is executed.  

Duration ​

Time in milliseconds to see the text. 0 is default and calculated by core.  

Sound ​

The SoundEntry ID this creature will play at the same time the text is executed.  

BroadcastTextId ​

Id of the equivalent text found in broadcast_text.  

TextRange ​

ValueRange
0Normal/Default
1Area
2Zone
3Map
4World

 

comment ​

This field is for any comment you want to make. It is arbitrary text.  

Example ​

The following snippets for the Stormwind City Guard are part of the Death Knight introduction questline.

CreatureText excerpt:

CreatureIDGroupIDIDTextTypeLanguageProbabilityTextRangeBroadcastTextId
6820%s throws a rotten apple at $n.160100031671
6830%s throws rotten banana on $n.160100031672
6840%s spits on $n.160100031673
6850Monster!120100031662
6851Murderer!120100031679
6852GET A ROPE!120100031669
6853How dare you set foot in our city!120100031684
6854You disgust me.120100031680
6855Looks like we're going to have ourselves an execution.120100031682
6856Traitorous dog.120100031665
6857My family was wiped out by the Scourge! MONSTER!120100031667

SmartAI excerpt:

entryorguidsource_typeidevent_typeevent_param1action_typeaction_param1action_param2action_param3action_param4comment
6801185853387329600329601329602329603Stormwind City Guard - On spell hit - Run Random Script
32960090001158509000Stormwind City Guard - On Script - Cast ''Rotten Apple Toss'
329600910012000Stormwind City Guard - On Script - Say Line 2
32960190001158513000Stormwind City Guard - On Script - Cast 'Rotten Banana Toss'
329601910013000Stormwind City Guard - On Script - Say Line 3
32960290001158520000Stormwind City Guard - On Script - Cast 'Spit'
329602910014000Stormwind City Guard - On Script - Say Line 4
329603900015000Stormwind City Guard - On Script - Say Line 5

SMART_ACTION_TALK (1) accesses creature_text on with the current creatureID and provided GroupID as parameter. In the case of GroupID 5 a random text is picked with equal chance (all have Probability: 100) and said (Type: 12) in the vicinity (TextRange: 0) of the guard in its default tongue (Language: 0).