Aggregate Attempt Node
Aggregates a mission attempt into persistent progress data, producing change objects for UI display including leaderboard updates, star unlocks, and outro text. Category: `once_p_duration`.
Aggregates a mission attempt into persistent progress data, producing change objects for UI display including leaderboard updates, star unlocks, and outro text. Category: once_p_duration.
Pins
Inputs
| Name | Type | Fixed | Description |
|---|---|---|---|
flow | flow | yes | Execution trigger (implicit) |
attempt | table (attemptData) | yes | Attempt data from upstream nodes |
progressKey | string | yes | Progress key override (defaults to activity's current/default) |
Outputs
| Name | Type | Fixed | Description |
|---|---|---|---|
change | table | yes | Full change object with aggregateChange, unlockedStars, etc. |
outroText | string | yes | Outro text for highest achieved default star |
outroTranslation | table (translationObject) | yes | Translation-ready outro with attempt context |
newBestType | bool | yes (hidden) | Whether a new best type was achieved |
| (custom) | any | no | allowCustomOutPins - aggregate change fields auto-mapped |
Behavior
C:workOnce():- Resolves progress key (pin → activity current → activity default)
- Calls
gameplay_missions_progress.aggregateAttempt(missionId, attempt, progressKey) - Saves mission data if not in career mode
- Stops AI recording if module exists
- Determines highest default star outro text from
careerSetup.starOutroTextsordefaultStarOutroTexts - Maps all
aggregateChangefields to matching custom output pins
Outro Text Resolution Order
- Check each default star (sorted) for unlocked status
- Use
careerSetup.starOutroTexts[starKey]→ fallbackdefaultStarOutroTexts[starKey] - If no default star unlocked:
noStarUnlockedtext - If no default stars exist:
noStarExiststext
Usage Example
-- Standard mission end pipeline:
-- [Activity Attempt] → [Attempt Stars] → [Aggregate Attempt] → [UI Module addRatings]
-- The change object contains:
-- change.aggregateChange - leaderboard/best changes
-- change.unlockedStarsAttempt - stars unlocked this attempt
-- change.unlockedStarsChanged - stars newly changed
-- change.starRewards - reward info per star
-- change.unlockedMissions, change.unlockedLeagues - progression unlocksAdditional Exports
init()
-
name-string- (see source) -
color-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- Activity Attempt Node - Related reference
- Activity Flow Node - Related reference
- Activity Hook Trigger Node - Related reference
- FlowGraph Guide - Guide
Finish Mission Node (Activity Stop)
Stops the current mission/activity. Defers the actual stop to `_afterTrigger` to allow the current frame's flowgraph execution to complete. Category: implicit (flow-driven).
Activity Attempt Stars Node
Adds star unlock flags to an attempt data object. User adds custom boolean pins named after star keys. Category: `once_instant`.