Mission Editor - Career Setup
Sub-editor module for configuring mission career integration: career/freeroam visibility, star rewards, attribute rewards (money, vouchers, branch XP), and skill requirements.
Sub-editor module for configuring mission career integration: career/freeroam visibility, star rewards, attribute rewards (money, vouchers, branch XP), and skill requirements.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (missionEditor) | Initializes with career branch/attribute options |
C:setMission | (mission) | Binds to a mission and initializes career setup state |
C:getMissionIssues | (m) → issues[] | Returns validation issues |
C:draw | () | Renders career setup ImGui panel |
Configuration Fields
| Field | Type | Description |
|---|---|---|
showInCareer | bool | Show mission in career mode |
showInFreeroam | bool | Show mission in freeroam mode |
starLabels | table | Star objectives and their labels |
rewards | table | Per-star reward definitions |
Reward Attributes
Available reward attribute keys:
money- In-game currencyvouchers- Special currency- Branch-specific XP keys from
career_branches
Star Rewards UI
| Column | Description |
|---|---|
| Attribute Key | Dropdown or text input for reward type |
| Value | Amount of reward per star |
| Add/Remove | Buttons to manage reward entries |
Skill Options
Populated from career_branches.getSortedBranches(), providing skill/branch IDs for mission requirements.
-- Career setup is edited within the Mission Editor's Career tab
-- No direct external APIDependencies
career_branches- Branch definitionsgameplay_missions_missions- Mission dataui_imgui
Functions
attributeDropdown()
Handles attribute dropdown.
Returns: rewards
drawAttributeInput(re, idx, key)
Draws attribute input.
re(any)idx(number)key(string)
Returns: rewards
drawRewardAmount(re, idx, key)
Draws reward amount.
re(any)idx(number)key(string)
Returns: rewards
drawAddReward(key, rewards)
Draws add reward.
key(string)rewards(any)
Returns: rewards
drawEntryFee()
Draws entry fee.
Returns: o
drawCareerSetup()
Draws career setup.
Returns: o
Functions
attributeDropdown()
Handles attribute dropdown.
Returns: rewards
drawAttributeInput(re, idx, key)
Draws attribute input.
re(any)idx(number)key(string)
Returns: rewards
drawRewardAmount(re, idx, key)
Draws reward amount.
re(any)idx(number)key(string)
Returns: rewards
drawAddReward(key, rewards)
Draws add reward.
key(string)rewards(any)
Returns: rewards
drawEntryFee()
Draws entry fee.
Returns: o
drawCareerSetup()
Draws career setup.
Returns: o
See Also
- Mission Editor - Additional Attributes - Related reference
- Mission Editor - Conditions - Related reference
- Mission Editor - Dev Notes - Related reference
- World Editor Guide - Guide
Mission Editor - Additional Attributes
Sub-editor module for mission additional attributes including author, date, difficulty, grouping, time-of-day settings, and custom key-value attributes.
Mission Editor - Conditions
Sub-editor module for configuring mission start and visibility conditions. Supports nested boolean logic trees with mission-based, progress-based, and custom condition types.