| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"/> |
| 5 | <title>Ship Weapons - 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> › <a href="ShipEditorDialog.html">Ship Editor</a> › Ship Weapons</nav> |
| 10 | <h1>Ship Weapons</h1> |
| 11 | <p>Accessed via the <strong>Weapons</strong> button in the <a href="ShipEditorDialog.html">Ship Editor</a>.</p> |
| 12 | <p>Assigns weapons, starting ammo, and per-turret AI class to the ship's banks and |
| 13 | turrets for this mission instance, overriding the ship class defaults.</p> |
| 14 | <p>All changes are buffered. Nothing is written to the mission until you click |
| 15 | <strong>OK</strong>; <strong>Cancel</strong> and closing the dialog discard |
| 16 | everything.</p> |
| 17 | |
| 18 | <h2>Layout</h2> |
| 19 | <p>Weapons are split across two tabs:</p> |
| 20 | <ul> |
| 21 | <li><strong>Primary</strong> - primary weapon banks for the pilot and any |
| 22 | turret with a primary slot.</li> |
| 23 | <li><strong>Secondary</strong> - secondary banks for the pilot and any |
| 24 | turret with a secondary slot.</li> |
| 25 | </ul> |
| 26 | <p>The dialog opens on whichever tab has banks first; if a ship has only secondaries, |
| 27 | the Secondary tab is shown.</p> |
| 28 | <p>Each tab contains:</p> |
| 29 | <ul> |
| 30 | <li>A <strong>Weapons</strong> list on the left showing weapons valid for this |
| 31 | bank type and ship size. Weapons that are not in the ship class's allowed |
| 32 | loadout are shown in gray with a tooltip explaining why; you can still assign |
| 33 | them in the editor.</li> |
| 34 | <li>A <strong>Banks</strong> tree on the right showing <em>Pilot</em> and each |
| 35 | turret as collapsible groups, with their bank slots and current ammo |
| 36 | underneath.</li> |
| 37 | <li>An <strong>AI</strong> selector beneath the tree for changing a turret's AI |
| 38 | class.</li> |
| 39 | </ul> |
| 40 | |
| 41 | <h2>Assigning weapons</h2> |
| 42 | <p>Several ways:</p> |
| 43 | <ul> |
| 44 | <li><strong>Drag from the weapons list onto a bank slot.</strong> The slot is set |
| 45 | to the dropped weapon, and ammo capacity is recalculated.</li> |
| 46 | <li><strong>Drag from one bank slot to another.</strong> By default the weapon is |
| 47 | moved (the source slot becomes empty). Hold <kbd>Ctrl</kbd> while dropping to |
| 48 | copy instead.</li> |
| 49 | <li><strong>Select one or more bank slots, pick a weapon from the list, and |
| 50 | click Set Selected.</strong> The chosen weapon is assigned to every selected |
| 51 | slot at once. <strong>Set Selected</strong> is enabled only when slot rows |
| 52 | (not turret-group rows) are selected.</li> |
| 53 | </ul> |
| 54 | <p>Selection within the Banks tree is restricted to one row type at a time: clicking |
| 55 | a turret-group row clears any selected slot rows, and vice versa. This keeps the |
| 56 | AI controls and Set Selected controls clearly applicable to whatever is currently |
| 57 | highlighted.</p> |
| 58 | |
| 59 | <h2>Editing ammo</h2> |
| 60 | <p>Where a weapon uses ammo, the slot's row has a second column showing |
| 61 | <em>current/max</em>. Click the value to edit; a spinbox appears, clamped to the |
| 62 | maximum capacity for that weapon and bank. The display refreshes as soon as the |
| 63 | edit is committed.</p> |
| 64 | |
| 65 | <h2>View Table</h2> |
| 66 | <p>With a weapon highlighted in the list, the <strong>View Table</strong> button |
| 67 | opens a viewer for that weapon's <code>weapons.tbl</code> entry (including any |
| 68 | modular <code>-wep.tbm</code> overrides). Useful for quickly checking damage, |
| 69 | ammo capacity, or flags without leaving the dialog.</p> |
| 70 | |
| 71 | <h2>AI class</h2> |
| 72 | <p>Each turret has its own AI class, independent of the ship's overall AI class. |
| 73 | Select one or more <em>turret-group</em> rows (the parent rows, not the individual |
| 74 | slots), pick an AI class from the combo, and click <strong>Change AI</strong>. The |
| 75 | new value is applied to every selected turret on every marked ship.</p> |
| 76 | <p>The combo reflects the selection:</p> |
| 77 | <ul> |
| 78 | <li>All selected turrets share the same AI - the combo shows that value.</li> |
| 79 | <li>Selected turrets disagree (within one ship, or across ships in multi-edit) |
| 80 | - the combo is blank; pick a value and click Change AI to set them |
| 81 | all to that value.</li> |
| 82 | </ul> |
| 83 | <p>The <em>Pilot</em> row is shown for context but its AI is owned by the |
| 84 | <a href="ShipEditorDialog.html">Ship Editor</a> and cannot be changed here. When |
| 85 | only the Pilot row is selected the AI controls are disabled.</p> |
| 86 | |
| 87 | <h2>Editing multiple ships at once</h2> |
| 88 | <p>If multiple ships of the same class are marked when the dialog is opened, |
| 89 | edits apply to all of them. The dialog reconciles per-slot state from the marked |
| 90 | ships at open time:</p> |
| 91 | <ul> |
| 92 | <li>Slots where every marked ship has the same weapon and ammo are shown |
| 93 | normally.</li> |
| 94 | <li>Slots where ships disagree on the <em>weapon</em> show |
| 95 | <strong>CONFLICT</strong>. Leaving the slot as CONFLICT preserves each |
| 96 | ship's existing weapon on OK; assigning a weapon overwrites all of them.</li> |
| 97 | <li>Slots where ships agree on the weapon but disagree on <em>ammo</em> show |
| 98 | <em>--/max</em>. Leaving it preserves each ship's existing ammo; entering |
| 99 | a value applies that value to all marked ships.</li> |
| 100 | <li>Turret AI is reconciled similarly: matching AIs show in the combo, mixed |
| 101 | AIs show as <em>(Mixed AI)</em> in the turret label and leave the combo |
| 102 | blank.</li> |
| 103 | </ul> |
| 104 | <p>Multi-edit is only available when every marked ship belongs to the same ship |
| 105 | class. The Ship Editor's <strong>Weapons</strong> button is disabled |
| 106 | otherwise.</p> |
| 107 | |
| 108 | <h2>OK and Cancel</h2> |
| 109 | <p><strong>OK</strong> commits every change (weapons, ammo, and AI) to every |
| 110 | relevant ship and closes the dialog. <strong>Cancel</strong>, closing the dialog |
| 111 | window, or pressing <kbd>Esc</kbd> discards every change; no mission data |
| 112 | is touched. If unsaved changes exist when closing, you are prompted to keep them.</p> |
| 113 | </body> |
| 114 | </html> |