Skip to content

Conversation

@Goober5000
Copy link
Contributor

Just as special tokens are replaced in debriefings, replace them in command briefings and briefings as well.

Change string_replace_tokens_with_keys to message_translate_tokens (since it's the same thing) and add a replaceContainers script API function to complement replaceVariables and replaceTokens.

Also replace every category of token in sexp_modify_variable and add comments to places where token replacement might be expected but happens elsewhere.

Just as special tokens are replaced in debriefings, replace them in command briefings and briefings as well.

Change `string_replace_tokens_with_keys` to `message_translate_tokens` (since it's the same thing) and add a `replaceContainers` script API function to complement `replaceVariables` and `replaceTokens`.

Also replace every category of token in `sexp_modify_variable` and add comments to places where token replacement might be expected but happens elsewhere.
@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. cleanup A modification or rewrite of code to make it more understandable or easier to maintain. labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. enhancement A new feature or upgrade of an existing feature to add additional functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant