Mission Editor – Playbook Utils
Editor sub-module that provides **quick-add buttons** for inserting mission attempt instructions into the Mission Playbook from within the Mission Editor.
Editor sub-module that provides quick-add buttons for inserting mission attempt instructions into the Mission Playbook from within the Mission Editor.
Overview
Adds a "Playbook Utils" tab to the mission editor. Provides one-click buttons to create various missionAttempt instructions (with different star configurations) and append them to editor_missionPlaybook.book.instructions.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (missionEditor) | Stores editor reference, sets tab name. |
C:setMission | (mission) | Caches mission and its runtime instance. |
C:draw | () | Renders all quick-add buttons. |
Available Buttons
| Button | Behavior |
|---|---|
| Add Empty | Adds attempt with no stars enabled |
| Add All Stars | Adds attempt with every active star |
| Add All Default Stars | Only default-slot stars |
| Add All Bonus Stars | Only bonus stars |
| Add Random Single Star | Shuffles stars, picks one |
| Add Randomized All Stars | Each star 50% chance on/off |
| Add All Stars Individually | One attempt per star, cumulative |
| Add All Default Stars Individually, Sequential | Cumulative default stars |
| Add All Bonus Stars Randomly Individually | One attempt per bonus star, random order |
Instruction Format
Each instruction appended is a table:
{
type = "missionAttempt",
missionId = "missions/east_coast/race/001",
stars = { timeBronze = true, timeSilver = true }
}These are consumed by editor_missionPlaybook for batch testing of career progression.
Usage Example
local pbUtils = require('extensions/editor/missionEditor/playbookUtils')(missionEditorRef)
pbUtils:setMission(mission)
pbUtils:draw()See Also
- Mission Editor - Additional Attributes - Related reference
- Mission Editor - Career Setup - Related reference
- Mission Editor - Conditions - Related reference
- World Editor Guide - Guide
Mission Editor – Objectives
Editor sub-module for the **Career Setup / Objectives** tab. Manages stars (default + bonus), star rewards, outro texts, translations, and copy/paste of career setups.
Mission Editor – Prefabs
Editor sub-module for managing a mission's **prefab file list**. Prefabs are `.prefab.json` files spawned into the scene when the mission starts.