stringtokens.2da is used to define a set of tokens you can use mainly in conversations to deal with variables like the day, time, gender of the PC etc.

You can though edit in your own - the most useful of which is the gender version which allows additions such as "guy/gal" or similar gender specific terms to be added.

Hardcoded Notes

There are a lot of action code options that are not really worth reusing since they already are hardcoded and applied once. Changing the existing lines are also not going to provide any benefit just potentially break your existing content. However you can alter them as you like, for instance if you were making a module with different time periods you might alter the "Lord/Lady" line to be "Senator/Senator" for instance.

Adding Additional Entries with ActionCode

The ActionCode value allows some additional entries to be generated mainly with Gender. You can also update some terms used in the 2da. The Default column probably only ever comes up if the player can't identify themselves, which is...likely not going to happen in a conversation they are in.

The codes are:

Action NameActionCode IDNotes
ACTION_REPLACE0This simply replaces the given token with the given Default TLK line entry
ACTION_GENDER1

The most useful;

  • If they are not female (ie male, other, etc.) uses StrRef1
  • If female uses StrRef2

Add more terms for your world using this.

ACTION_FULLNAME2Hardcoded, provides their full name (Default is used if the full name is somehow invalid. The 2da uses 5180 which is "*mumble*")
ACTION_FIRSTNAME3Hardcoded, provides their first name (Default is used if the first name is somehow invalid. The 2da uses 5180 which is "*mumble*")
ACTION_LASTNAME4Hardcoded, provides their last name (Default is used if the last name is somehow invalid. The 2da uses 5180 which is "*mumble*")
ACTION_RACE5Hardcoded, provides their race name in capitalised (Default is used if the race is somehow invalid. The 2da uses 5175 which is "Human")
ACTION_RACELOWER6Hardcoded, provides their race name in lowercase (Default is used if the race is somehow invalid. The 2da uses 5176 which is "human")
ACTION_SUBRACE7Hardcoded, provides their subrace field (Default is used if the subrace is invalid, ie blank, the 2da uses 5175 which is "Human")
ACTION_CLASS8Hardcoded, provides the first slot class name in capitalised (Default is used if the class is somehow invalid. The 2da uses 5172 which is "Adventurer")
ACTION_CLASSLOWER9Hardcoded, provides the first slot class name in lowercase (Default is used if the class is somehow invalid. The 2da uses 5173 which is "adventurer")
ACTION_LEVEL10Hardcoded, provides the players level (Default is used if the level is somehow invalid. The 2da uses 5177 which is "")
ACTION_ALIGNMENT11Hardcoded, full alignment string capitalised
ACTION_ALIGNMENTLOWER12Hardcoded, full alignment string lowercase
ACTION_LAWCHAOS13Hardcoded, Lawful, Neutral or Chaotic
ACTION_GOODEVIL14Hardcoded, Good, Neutral or Evil
ACTION_GAMEYEAR15Hardcoded, game year
ACTION_GAMEHOUR16Hardcoded, game hour
ACTION_GAMEMONTH17Hardcoded, game month (number form)
ACTION_QUARTERDAY18Hardcoded, quarter day - StrRef1 / 2 / 3 / 4 are Night / Morning / Day / Evening respectively. Bioware put in two versions for upper and lowercase.
ACTION_STARTACTION19

Hardcoded, colours text with green: \x01\xFE\x01

ACTION_STARTCHECK20Hardcoded, colours text with red: \xFE\x01\x01
ACTION_STARTHIGHLIGHT21Hardcoded, colours text with blue: \x01\x01\xFE
ACTION_STARTEND22Ends a block with </c>
ACTION_PLAYERNAME23Hardocded, the player name (not their character name)
ACTION_DEITY24Hardcoded, the players deity field (Default is used if it is somehow invalid. The 2da uses 5180 which is "*mumble*")

2da Columns

ColumnExample ContentsValid ValuesDescription and Notes
TokenLord/LadyTextLabel of the token, used in the toolset
ActionCode1Action Code ID - see table aboveThe main reusable one is 1 for gender related strings, eg adding "guy/gal" would be easy with this. Remember you need 2 rows if you want a capitalised version.
Default-1TLK String Reference or -1 if not needed

If the token cannot be determined it uses the Default TLK string reference. Usually the case for errors of data more than anything, since even fields like Deity should return a blank string if not set by the player.

StrRef1

StrRef2

StrRef3

StrRef4

4885

4886

-1

-1

TLK String Reference or -1 if not needed (can also be ****)

The string reference to refer to. Since the main additions will be gender based, Male (or rather, anything but female) is 1 and Female is 2.

Category11 or 0

Seemingly unused, possibly leftover for Toolset to utilise as filter. If this has a use edit it in here.

2da Contents

2DA V2.0                                                                                                                
                                                                                                                        
           Token                              ActionCode   Default   StrRef1   StrRef2   StrRef3   StrRef4   Category   
1          Alignment                          11           5180      -1        -1        -1        -1        0          
2          alignment                          12           5180      -1        -1        -1        -1        0          
3          Boy/Girl                           1            -1        4860      4861      -1        -1        0          
4          boy/girl                           1            -1        4862      4863      -1        -1        0          
5          Brother/Sister                     1            -1        4864      4865      -1        -1        0          
6          brother/sister                     1            -1        4866      4867      -1        -1        0          
7          Class                              8            5172      -1        -1        -1        -1        0          
8          class                              9            5173      -1        -1        -1        -1        0          
9          Day/Night                          18           -1        4962      4961      4961      4961      1          
10         day/night                          18           -1        4964      4963      4963      4963      1          
11         Deity                              24           5180      -1        -1        -1        -1        0          
12         FirstName                          3            5180      -1        -1        -1        -1        0          
13         FullName                           2            5180      -1        -1        -1        -1        0          
14         GameMonth                          17           -1        -1        -1        -1        -1        1          
15         GameTime                           16           -1        -1        -1        -1        -1        1          
16         GameYear                           15           -1        -1        -1        -1        -1        1          
17         Good/Evil                          14           5180      265       264       266       -1        0          
18         good/evil                          14           5180      4959      4955      4960      -1        0          
19         He/She                             1            -1        4869      4870      -1        -1        0          
20         he/she                             1            -1        4871      4872      -1        -1        0          
21         Him/Her                            1            -1        4873      4874      -1        -1        0          
22         him/her                            1            -1        4875      4876      -1        -1        0          
23         His/Her                            1            -1        4877      4874      -1        -1        0          
24         his/her                            1            -1        4878      4876      -1        -1        0          
25         His/Hers                           1            -1        4877      4879      -1        -1        0          
26         his/hers                           1            -1        4878      4880      -1        -1        0          
27         Lad/Lass                           1            -1        4881      4882      -1        -1        0          
28         lad/lass                           1            -1        4883      4884      -1        -1        0          
29         LastName                           4            5180      -1        -1        -1        -1        0          
30         Lawful/Chaotic                     13           5180      268       264       267       -1        0          
31         lawful/chaotic                     13           5180      4954      4955      4956      -1        0          
32         Law/Chaos                          13           5180      4943      264       4944      -1        0          
33         law/chaos                          13           5180      4957      4955      4958      -1        0          
34         Level                              10           5177      -1        -1        -1        -1        1          
35         Lord/Lady                          1            -1        4885      4886      -1        -1        0          
36         lord/lady                          1            -1        4887      4888      -1        -1        0          
37         Male/Female                        1            -1        156       157       -1        -1        0          
38         male/female                        1            -1        4924      4925      -1        -1        0          
39         Man/Woman                          1            -1        4926      4927      -1        -1        0          
40         man/woman                          1            -1        4928      4929      -1        -1        0          
41         Master/Mistress                    1            -1        4930      4931      -1        -1        0          
42         master/mistress                    1            -1        4932      4933      -1        -1        0          
43         Mister/Missus                      1            -1        4934      4935      -1        -1        0          
44         mister/missus                      1            -1        4936      4937      -1        -1        0          
45         PlayerName                         23           5180      -1        -1        -1        -1        1          
46         QuarterDay                         18           -1        4962      4966      4967      4968      1          
47         quarterday                         18           -1        4964      4970      4971      4972      1          
48         Race                               5            5175      -1        -1        -1        -1        1          
49         race                               6            5176      -1        -1        -1        -1        1          
50         Sir/Madam                          1            -1        4939      4940      -1        -1        0          
51         sir/madam                          1            -1        4941      4942      -1        -1        0          
52         StartAction                        19           -1        -1        -1        -1        -1        1          
53         StartCheck                         20           -1        -1        -1        -1        -1        1          
54         StartHighlight                     21           -1        -1        -1        -1        -1        1          
55         /Start                             22           -1        -1        -1        -1        -1        1          
56         Subrace                            7            5175      -1        -1        -1        -1        1          
57         bitch/bastard                      1            -1        1757      1739      -1        -1        0          
  • No labels