Skip to content

11 — Text Trigger...

Changed in 0.3.0

Prints one numbered line of tutorial text over the tactical view in a chosen color and for a chosen time.

Editor data
Numeric ID
11
Engine ID
TACTION_TEXT_TRIGGER
Editor name
Text Trigger...
Need token
NEED_NUMBER
Parameters
  1. Numberinteger
Attachment
none
INI example
[Actions]
<TriggerID>=1,11,0,<Number>,0,0,0,0,

The text comes from the numbered lines that TUTORIAL.INI holds. A map can add or replace lines with a [Tutorial] section of its own. Its lines take precedence over TUTORIAL.INI lines with the same number for as long as the mission is played.

TUTORIAL.INI
[Tutorial]
120=Hold the ridge until the transports arrive.
map file
[Tutorial]
120=Hold the bridge instead.
121=Fall back to the ridge.
[Actions]
DemoText=1,11,0,120,0,0,0,0, ; line 120 in the first color, for the MessageDelay time
Brief=1,11,0,121,2,30,0,0, ; line 121 in the third color, for about 30 seconds

The color goes in the first of the four fields after the text line number, and the display time in the second. The last two fields are unused; write 0 for both.

Count the color position from 0; 0 is the first entry of [Colors] in the rules.

A display time of 0 or less keeps the line on screen for MessageDelay. A positive time keeps it for that many seconds. Later messages can still push the line off before that time ends.

Valid values

  • The number of a line in the map's [Tutorial] section or in TUTORIAL.INI.
  • A color's position in the rules' [Colors] list, from 0 to one less than the number of entries.
  • A whole number of seconds for the display time.
Caveats
  • A text line number that neither the map nor TUTORIAL.INI holds prints nothing. The trigger's other actions still run.
  • A negative color position, or one past the end of the color list, shows the line in each player's own color, so players in a multiplayer game see different colors.
  • New colors that a map's own [Colors] section adds are counted after the rules' list, in the map's order. A name the rules already declare keeps its rules position and color.
  • Tutorial lines share the on-screen message list with chat and game notices. The list shows six messages, and each new message after that removes the oldest, so later messages can take the line off the screen before its time is up.
  • A line too wide for the message area is split into several messages. Each part plays the incoming-message sound and can be pushed off the screen separately.

History

  1. Changed0.2.0Release candidate

    Read a map's own tutorial lines

  2. Changed0.3.0In development

    Choose a text trigger's color and display time