| func | TalkBoxForPlayers | Opens a dialog with several response options (from 1 to 5) for selected players (playersFilter). The function does not issue error messages because if parameters are incorrect, default values are used | |
| playersFilter | PlayersFilteringConstantsID | Identifier of selected players | |
| iconRef | Reference to the icon texture | ||
| iconTooltipRef | Path to the icon tooltip text | ||
| textRef | Path to the dialog text | ||
| addTextRef | Path to the dialog text (additional) | ||
| callback | String with the name of the lua function, whose first parameter conveys the player's response (number: 0 - cancel, -1 - closed by player, 1.. - number of the response selected by the player) | ||
| mode | Mode type: 0 - with OK button, 1 - OK/Close | ||
| titleTextRef | Path to the window title text | ||
| selectTextRef | Path to the header text before selection options | ||
| defaultOption | Number of the response highlighted by default (number: 0 - none, 1.. - response number) | ||
| optionTextRef | path to response text № 1 | ||
| [ optionTextRef] | Path to response text № ... | ||
| … | [Response number] |
Added after 3 minutes
The player who answered the question and the response number (responses 1-5, non-natural values indicate that the window was closed) are passed to the function with the name provided as the callback parameter.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4