Debian Codegraph @

qtfred/help-src/doc/dialogs/MissionEventsDialog.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8"/>
5 <title>Mission Events - QtFRED Help</title>
6 <link rel="stylesheet" type="text/css" href="../css/help.css"/>
7 </head>
8 <body>
9 <nav class="breadcrumb"><a href="../index.html">QtFRED Help</a> &rsaquo; Mission &rsaquo; Mission Events</nav>
10 <h1>Mission Events</h1>
11 <p>Opens via <strong>Editors &rsaquo; Mission Events</strong>.</p>
12 <p>Mission Events is the primary scripting interface in QtFRED and where the vast majority
13 of mission design work happens. Each event is a named unit that pairs a condition with one
14 or more actions expressed as <a href="../concepts/sexps.html">SEXPs</a>. The engine
15 evaluates every event every frame; when the condition becomes true the actions fire.
16 Events can repeat on a cooldown, depend on other events firing first, display objectives
17 on the HUD, trigger messages, and much more. The event list is the brain of a mission.</p>
18
19 <h2>Event list and SEXP tree</h2>
20 <p>The main area shows all events in the mission alongside their SEXP trees. Selecting an
21 event expands its condition and action expressions for editing. Right-click any SEXP node
22 to add, replace, or remove operators and arguments. See
23 <a href="../concepts/sexps.html">SEXPs</a> for a full overview of the expression
24 language and the operators available.</p>
25 <p>Events are evaluated in list order each frame. Order matters: events earlier in the
26 list are processed first, which can affect timing when events interact.</p>
27
28 <h2>Event list buttons</h2>
29 <table>
30 <tr><th>Button</th><th>Description</th></tr>
31 <tr><td>New</td><td>Appends a new blank event at the end of the list.</td></tr>
32 <tr><td>Insert</td><td>Inserts a new blank event above the currently selected
33 event.</td></tr>
34 <tr><td>Delete</td><td>Removes the selected event.</td></tr>
35 <tr><td>Move Up / Move Down</td><td>Reorders the selected event within the
36 list.</td></tr>
37 </table>
38
39 <h2>Event properties</h2>
40 <p>These fields configure the selected event.</p>
41 <table>
42 <tr><th>Field</th><th>Description</th></tr>
43 <tr><td>Name</td><td>Internal label shown in the event list. Referenced by the
44 <strong>Chain</strong> feature of other events and by SEXPs such as
45 <code>event-true</code> and <code>event-false</code>.</td></tr>
46 <tr><td>Repeat count</td><td>How many times the event's actions will run in total.
47 <kbd>-1</kbd> means unlimited.</td></tr>
48 <tr><td>Trigger count</td><td>How many times the event's condition must become true
49 before the event stops firing entirely. Once this count reaches zero the event
50 is permanently disabled, overriding any remaining repeat count.</td></tr>
51 <tr><td>Interval</td><td>Minimum time in seconds or milliseconds between successive
52 firings when the repeat count is greater than 1. The interval timer resets after
53 each firing.</td></tr>
54 <tr><td>Chained</td><td>When checked, this event's condition is not evaluated until
55 the immediately preceding event in the list has become true at least once. Used
56 to sequence events without adding explicit timing conditions to every
57 SEXP.</td></tr>
58 <tr><td>Chain delay</td><td>Number of seconds or milliseconds after the preceding
59 event becomes true before this event's condition begins evaluating. Only
60 meaningful when <strong>Chained</strong> is checked.</td></tr>
61 <tr><td>Interval & Chain Delay in Millliseconds</td><td>Chekcbox that
62 when checked changes both Chain Delay and Interval to being milliseconds instead
63 of seconds.</td></tr>
64 <tr><td>Score</td><td>Points awarded to the player when this event becomes
65 true.</td></tr>
66 <tr><td>Team</td><td>In multiplayer missions, restricts the event to a specific
67 team. Disabled for non-multiplayer missions.</td></tr>
68 <tr><td>Directive text</td><td>Text shown in the player's objective display on the
69 HUD when this event is active. Writing text here makes the event a directive.
70 Directives turn red when they can no longer become true, and blue when they
71 do become true.</td></tr>
72 <tr><td>Directive keypress text</td><td>Helper text displayed beneath the directive
73 in green on the HUD. Keybinds can be embedded by surrounding the bind name
74 with <code>$$</code>, for example <code>$Alt-X$</code>, and they will be
75 automatically translated to the player's current control bindings.</td></tr>
76 </table>
77
78 <h2>Log flags</h2>
79 <p>These checkboxes control when the selected event writes an entry to the engine's
80 debug event log (<code>event.log</code>). They are useful for tracing event behavior
81 during mission testing.</p>
82 <table>
83 <tr><th>Flag</th><th>Logs when&hellip;</th></tr>
84 <tr><td>True</td><td>The event condition evaluates to true.</td></tr>
85 <tr><td>False</td><td>The event condition evaluates to false.</td></tr>
86 <tr><td>Always False</td><td>The event condition is permanently false.</td></tr>
87 <tr><td>Log Previous</td><td>The event changes state; logs the previous state
88 alongside the new one.</td></tr>
89 <tr><td>First Repeat</td><td>The event fires on its first repetition. Flag is
90 cleared after logging once.</td></tr>
91 <tr><td>Last Repeat</td><td>The event fires on its final repetition.</td></tr>
92 <tr><td>First Trigger</td><td>The event fires on its first trigger. Flag is
93 cleared after logging once.</td></tr>
94 <tr><td>Last Trigger</td><td>The event fires on its final trigger.</td></tr>
95 </table>
96
97 <h2>Messages</h2>
98 <p>The messages panel lists all messages defined for this mission. SEXPs such as
99 <code>send-message</code> and <code>send-message-list</code> reference messages by
100 name. Use the arrow buttons to reorder messages in the list.</p>
101
102 <h3>Message list buttons</h3>
103 <table>
104 <tr><th>Button</th><th>Description</th></tr>
105 <tr><td>New</td><td>Appends a new blank message at the end of the list.</td></tr>
106 <tr><td>Insert</td><td>Inserts a new blank message above the selected
107 message.</td></tr>
108 <tr><td>Delete</td><td>Removes the selected message.</td></tr>
109 <tr><td>Add Note</td><td>Attaches a note to the selected message that is not
110 visible to the player. Notes function like stage directions and are printed in
111 the generated script exported from the
112 <a href="VoiceActingManager.html">Voice Acting Manager</a>.</td></tr>
113 <tr><td>Update Stuff</td><td>Automatically assigns the head animation and persona
114 for the selected message based on the current mission settings.</td></tr>
115 </table>
116
117 <h3>Message properties</h3>
118 <table>
119 <tr><th>Field</th><th>Description</th></tr>
120 <tr><td>Name</td><td>Internal identifier used to reference this message in SEXPs.
121 Not shown to the player.</td></tr>
122 <tr><td>Message text</td><td>The text displayed on the HUD when this message is
123 sent.</td></tr>
124 <tr><td>Head ANI</td><td>The talking-head animation file shown with the message.
125 Choose from the dropdown for quick access or browse the gallery.</td></tr>
126 <tr><td>Wave file</td><td>The audio file played when this message is sent.</td></tr>
127 <tr><td>Persona</td><td>When a message has a persona assigned and is sent with
128 <code>wingman</code> as the source, the engine finds a random ship from the
129 player's wing that matches this persona to act as sender. If no matching ship
130 exists the message falls back to Terran Command.</td></tr>
131 <tr><td>Team</td><td>In Team vs. Team multiplayer, restricts this message to
132 players on the specified team. <em>None</em> sends the message to all
133 players.</td></tr>
134 </table>
135 </body>
136 </html>