root/trunk/src/bindings/scripts/docs/Text-tables.txt

Revision 164, 5.8 kB (checked in by yumileroy, 17 years ago)

[svn] * Updated Serpentshrine Cavern scripts to use script_texts
* Added script_texts for (nearly) all scripts
* Added documentation for script_texts
* Fixed tabs in chat.cpp

Original author: slg
Date: 2008-11-04 15:21:02-06:00

Line 
1=========================================
2Texts Documentation
3=========================================
4
5Scriptdev2 Revision 695 introduces a new format for using texts in EventAI and SD2 Scripts.
6This information relates to the three *_texts tables located in the ScriptDev Database.
7
8Any script can at any time access and use text from any of the three text tables, as long as the entry does in fact exist.
9Custom scripters are adviced to store their text data in custom_texts.
10
11The three different tables has ranges of entries allowed for that table.
12eventai_texts: entry -1       -> -999999
13script_texts:  entry -1000000 -> -1999999
14custom_texts:  entry -2000000 -> -2999999
15Any entry out of range for that table will display a startup error.
16
17
18=========================================
19Basic Structure of eventai_texts, script_texts and custom_texts
20=========================================
21Below is a the list of current fields within the texts tables.
22
23Field_Name            Description
24-----------------------------------------------------------
25entry                 This value is mearly an NEGATIVE identifier of the current text number. Required for sql queries.
26content_default       This is the actual text presented in the default language (English).
27
28content_loc1          This is the actual text presented in the Localization #1 Clients (Korean)
29content_loc2          This is the actual text presented in the Localization #2 Clients (French)
30content_loc3          This is the actual text presented in the Localization #3 Clients (German)
31content_loc4          This is the actual text presented in the Localization #4 Clients (Chinese)
32content_loc5          This is the actual text presented in the Localization #5 Clients (Taiwanese)
33content_loc6          This is the actual text presented in the Localization #6 Clients (Spanish)
34content_loc7          This is the actual text presented in the Localization #7 Clients (Spanish Mexico)
35content_loc8          This is the actual text presented in the Localization #8 Clients (Russian)
36
37sound                 This value is the Sound ID that corresponds to the actual text used (Defined in SoundEntries.dbc).
38type                  Variables used to define type of text (Say/Yell/Textemote/Whisper).
39language              This value is the Language that the text is native in (Defined in Languages.dbc).
40comment               This is a comment regarding the text entry (For ACID, accepted format is to use Creature ID of NPC using it).
41
42Note: Fields `content_loc1` to `content_loc8` are NULL values by default and are handled by seperate localization projects.
43
44
45=========================================
46Text Types (type)
47=========================================
48Below is the list of current Text types that texts tables can handle. These were previously seperate Actions in ACID.
49
50#    Internal Name                 Description
51-----------------------------------------------------------
520    CHAT_TYPE_SAY                 This type sets the text to be displayed as a Say (Speech Bubble).
531    CHAT_TYPE_YELL                This type sets the text to be displayed as a Yell (Red Speech Bubble) and usually has a matching Sound ID.
542    CHAT_TYPE_TEXT_EMOTE          This type sets the text to be displayed as a text emote in orange in the chat log.
553    CHAT_TYPE_BOSS_EMOTE          This type sets the text to be displayed as a text emote in orange in the chat log (Used only for specific Bosses).
564    CHAT_TYPE_WHISPER             This type sets the text to be displayed as a whisper to the player in the chat log.
575    CHAT_TYPE_BOSS_WHISPER        This type sets the text to be displayed as a whisper to the player in the chat log (Used only for specific Bosses).
58
59
60=========================================
61Language Types (language)
62=========================================
63Below is the list of current Language types that are allowed.
64This is the Race Language that the text is native to (So it will display properly)
65
66#    Internal Name                Description
67-----------------------------------------------------------                   
680    UNIVERSAL                    Text in this language is understood by ALL Races.
691    ORCISH                       Text in this language is understood ONLY by Horde Races.
702    DARNASSIAN                   Text in this language is understood ONLY by the Night Elf Race.
713    TAURAHE                      Text in this language is understood ONLY by the Tauren Race.
726    DWARVISH                     Text in this language is understood ONLY by the Dwarf Race.
737    COMMON                       Text in this language is understood ONLY by Alliance Races.
748    DEMONIC                      Text in this language is understood ONLY by the Demon Race (Not Implimented).
759    TITAN                        This language was used by Sargeras to speak with other Titians (Not Implemented).
7610   THALASSIAN                   Text in this language is understood ONLY by the Blood Elf Race.
7711   DRACONIC                     Text in this language is understood ONLY by the Dragon Race.
7812   KALIMAG                      Text will display as Kalimag (not readable by players, language of all elementals)
7913   GNOMISH                      Text in this language is understood ONLY by the Gnome Race.
8014   TROLL                        Text in this language is understood ONLY by the Troll Race.
8133   GUTTERSPEAK                  Text in this language is understood ONLY by the Undead Race.
8235   DRAENEI                      Text in this language is understood ONLY by the Draenai Race.
8336   ZOMBIE                       (not currently used?)
8437   GNOMISH BINARY               Binary language used by Alliance when drinking Binary Brew
8538   GOBLIN BINARY                Binary language used by Horce when drinking Binary Brew
Note: See TracBrowser for help on using the browser.