Skip to content

add sexp to get the current supernova stage#6659

Merged
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:supernova_stage_and_missionsave_tweaks
Apr 7, 2025
Merged

add sexp to get the current supernova stage#6659
Goober5000 merged 1 commit intoscp-fs2open:masterfrom
Goober5000:supernova_stage_and_missionsave_tweaks

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

Return the current supernova stage. This sexp, in conjunction with mission cutscene editor, makes it possible to reproduce the FreeSpace 2 end-of-campaign cutscene behavior purely in FRED. The resulting cutscene section looks like this:


$Campaign End Cutscene: endpart1.mve
+formula: ( true )

$Campaign End Cutscene: endprt2a.mve
+formula: ( < ( get-supernova-stage ) 3 )

$Campaign End Cutscene: endprt2b.mve
+formula: ( >= ( get-supernova-stage ) 3 )

Also add a new status subcategory and fix newline behavior when saving the cutscene section.

Fixes #6657.

@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. sexps A feature or issue related to SEXPs Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Apr 1, 2025
Comment thread code/parse/sexp.cpp Outdated
Return the current supernova stage.  This sexp, in conjunction with mission cutscene editor, makes it possible to reproduce the FreeSpace 2 end-of-campaign cutscene behavior purely in FRED.  The resulting cutscene section looks like this:
```

$Campaign End Cutscene: endpart1.mve
+formula: ( true )

$Campaign End Cutscene: endprt2a.mve
+formula: ( < ( get-supernova-stage ) 3 )

$Campaign End Cutscene: endprt2b.mve
+formula: ( >= ( get-supernova-stage ) 3 )

```
Also add a new status subcategory and fix newline behavior when saving the cutscene section.

Fixes scp-fs2open#6657.
@Goober5000 Goober5000 force-pushed the supernova_stage_and_missionsave_tweaks branch from 983aa87 to 67a4244 Compare April 7, 2025 02:37
@Goober5000 Goober5000 merged commit 7246bc3 into scp-fs2open:master Apr 7, 2025
16 checks passed
@Goober5000 Goober5000 deleted the supernova_stage_and_missionsave_tweaks branch April 7, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. sexps A feature or issue related to SEXPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Same campaign names, different mods, causes issues.

2 participants