Debian Codegraph @

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

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8"/>
5 <title>Alt Ship Class - 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; <a href="ShipEditorDialog.html">Ship Editor</a> &rsaquo; Alt Ship Class</nav>
10 <h1>Alt Ship Class</h1>
11 <p>Accessed via the <strong>Alt Ship Class</strong> button in the <a href="ShipEditorDialog.html">Ship Editor</a>.</p>
12 <p>Defines a prioritized fallback chain of ship classes to substitute if this ship's
13 primary class is unavailable at mission load. The engine tries the primary class
14 first, then works through the alt class list in order, assigning the first class
15 that qualifies. This is primarily useful in campaign missions where the available
16 ship pool can vary based on earlier choices or loadout configuration.</p>
17
18 <h2>The alt class list</h2>
19 <p>Each entry in the list is one fallback candidate. Order matters. The engine tries
20 them top to bottom and stops at the first one it can use. Use the
21 <strong>Up</strong> and <strong>Down</strong> buttons to reorder entries.
22 <strong>Add</strong> and <strong>Insert</strong> create new entries;
23 <strong>Delete</strong> removes the selected one.</p>
24
25 <h2>Entry properties</h2>
26 <table>
27 <tr><th>Field</th><th>Description</th></tr>
28 <tr><td>From Ship</td><td>A fixed ship class chosen directly from the available
29 classes. The class is resolved at mission load.</td></tr>
30 <tr><td>From Variable</td><td>A string variable whose value names the ship class
31 to use. The variable is read at mission load, so the class can be set
32 dynamically by earlier SEXPs in the campaign.</td></tr>
33 <tr><td>Default to this class</td><td>Controls how the engine checks availability.
34 When unchecked, the engine assigns this class immediately without checking
35 whether any slots remain in the loadout. When checked, the engine first
36 verifies that ships of this class are still available in the loadout; if
37 none remain, it skips this entry and tries the next one.</td></tr>
38 </table>
39 </body>
40 </html>