Strings and Tokens
A list of usable tokens (IWD2). 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. |
<DAY> | Returns the current numerical day. |
<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.) |
<PROTAGONIST_BROTHERSISTER> | Returns "brother" or "sister" depending on the main character's gender. |
<PROTAGONIST_GIRLBO> | Returns "girl" or "boy" depending on the main character's gender. |
<PROTAGONIST_HESHE> | Returns "he" or "she" depending on the main character's gender. |
<PROTAGONIST_HIMHER> | Returns "him" or "her" depending on the main character's gender. |
<PROTAGONIST_HISHER> | Returns "his" or "her" depending on the main character's gender. |
<PROTAGONIST_LADYLORD> | Returns "Lady" or "Lord" depending on the main character's gender. |
<PROTAGONIST_MALEFEMALE> | Returns "male" or "female" depending on the main character's gender. |
<PROTAGONIST_MANWOMAN> | Returns "man" or "woman" depending on the main character's gender. |
<PROTAGONIST_RACE> | Returns the main character's race. |
<PROTAGONIST_SIRMAAM> | Returns "sir" or "ma'am" 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. |
<SURFACE_UNDERDARK> | Returns "surface" or "underdark" depending on where the party is. |
<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. |