Strings and Tokens
A list of usable tokens in BG(2): EE. Other tokens are available, however they are set by the engine directly before use and are unreliable in general circumstances.
<BROTHERSISTER> | Returns "brother" or "sister" depending on the gender of the person being spoken to. |
<CHARNAME> | Returns the name of the PC. |
<DAYANDMONTH> | Returns the current numerical day as well as the month. (Example: It is <DAYANDMONTH>, would produce: It is 24 Mirtul...or whatever the current day and month happens to be.) |
<DAYNIGHT> | Returns "day" or "night" depending on if it's daytime or night-time in the game world. |
<DAYNIGHTALL> | Returns "morning" from 6am (6) to 11:59am, "afternoon" from Noon (12) to 5:59pm, "evening" from 6pm (18) to 9:59pm. and "night" from 10pm (22) to 5:59am (game world times). |
<GABBER> | Returns the name of the current speaker. (Example: If I use Jaheira and click-talk her on a creature rather than using the PC, this would return Jaheira if used in a dialogue.) |
<GAMEDAY> | Returns the current game day. (Starts at 1 for a new game.) |
<GAMEDAYS> | Returns the number of game days that have elapsed since the start of the game. (Starts at 0 for a new game.) |
<GIRLBOY> | Returns "girl" or "boy" depending on the gender of the person being spoken to. |
<HESHE> | Returns "he" or "she" depending on the gender of the person being spoken to. |
<HIMHER> | Returns "him" or "her" depending on the gender of the person being spoken to. |
<HISHER> | Returns "his" or "her" depending on the gender of the person being spoken to. |
<LADYLORD> | Returns "Lady" or "Lord" depending on the gender of the person being spoken to. |
<LEVEL> | Returns the experience level of the person being spoken to. |
<MALEFEMALE> | Returns "male" or "female" depending on the gender of the person being spoken to. |
<MANWOMAN> | Returns "man" or "woman" depending on the gender of the person being spoken to. |
<MONTH> | Returns the current game month as a number. |
<MONTHNAME> | Returns the current month's name. (Example: It is <MONTHNAME>, would produce: It is Mirtul...or whatever the current month is in your game.) |
<PLAYER1-6> | Returns the name of the party character in the specified internal party slot. (The main character is always PLAYER1.) |
<PRO_BROTHERSISTER> | Returns "brother" or "sister" depending on the main character's gender. |
<PRO_CLASS> | Returns the main character's class name. |
<PRO_GIRLBOY> | Returns "girl" or "boy" depending on the main character's gender. |
<PRO_HESHE> | Returns "he" or "she" depending on the main character's gender. |
<PRO_HIMHER> | Returns "him" or "her" depending on the main character's gender. |
<PRO_HISHER> | Returns "his" or "her" depending on the main character's gender. |
<PRO_LADYLORD> | Returns "Lady" or "Lord" depending on the main character's gender. |
<PRO_MALEFEMALE> | Returns "male" or "female" depending on the main character's gender. |
<PRO_MANWOMAN> | Returns "man" or "woman" depending on the main character's gender. |
<PRO_MASTERMISTRESS> | Returns "master" or "mistress" depending on the main character's gender. |
<PRO_RACE> | Returns the main character's race. |
<PRO_SIRMAAM> | Returns "sir" or "ma'am" depending on the main character's gender. |
<PRO_SONDAUGHTER> | Returns "son" or "daughter" depending on the main character's gender. |
<RACE> | Returns the race of the person currently being spoken to. |
<SIRMAAM> | Returns "sir" or "ma'am" depending on the gender of the person being spoken to. |
<SONDAUGHTER> | Returns "son" or "daughter" depending on the gender of the person being spoken to. |
<TM> | Returns the "TM" trademark symbol. |
<YEAR> | Returns the current year in numerical format. (Example: It is <YEAR> currently, would produce: It is 1369 currently...or whatever year it is in your game. |