Skip to content

Set mission timer type - #2373

Merged
Coronia merged 10 commits into
Phobos-developers:developfrom
Coronia:mission-timer
Aug 28, 2026
Merged

Set mission timer type#2373
Coronia merged 10 commits into
Phobos-developers:developfrom
Coronia:mission-timer

Conversation

@Coronia

@Coronia Coronia commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What kind of change is this?

  • New feature, vanilla bugfix or enhancement of a released feature - changelog, docs and credits entries are needed.
  • Improvement to a new (unreleased) feature - docs and credits entries are needed; no changelog entry (Skip Changelog).
  • Bugfix to a new (unreleased) feature - credits entry is needed; no changelog or docs entries (Skip Changelog, Skip Docs).
  • Bugfix to an old (released) feature - changelog and credits entries are needed; no docs entry (Skip Docs).
  • Completely minor change (e.g. a typo fix) - no entries are needed (Skip Changelog, Skip Docs, Skip Credits).

Description

513 Set mission timer properties

  • Set the method to display mission timer and whether the timer should be displayed reversedly based on given value.
    • For behaviours 0, 1, and 2, the second parameter decides the base value for percentage timer type or reversed timer that'll be used for calculation.
    • For behaviours 3 and 4, the second parameter decides the index of variable that'll be displayed. If the local/global variable does not exist, 0 will be displayed.

In mycampaign.map:

[Actions]
...
ID=ActionCount,[Action1],521,0,0,[MissionTimerType],[BaseValue or VariableIndex],[ReverseTimer],0,A,[ActionX]
...
Behaviour Description
0 Show normal timer
1 show percentage based on the given value
2 Show timer in digit form
3 Show value of the selected local variable
4 Show value of the selected global variable
This won't affect how the global mission timer really ticks, so it'll still end after the mission tiemr expired.

@Coronia Coronia added Needs testing ⚙️T1 T1 maintainer review is sufficient labels Aug 27, 2026
# Conflicts:
#	docs/Whats-New.md
@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Coronia
Coronia requested a review from NetsuNegi August 27, 2026 13:05
Comment thread docs/AI-Scripting-and-Mapping.md Outdated
Comment thread docs/AI-Scripting-and-Mapping.md Outdated
Comment thread src/Ext/TAction/Body.cpp Outdated
Comment thread src/Misc/Hooks.UI.cpp
@Coronia
Coronia merged commit bba7159 into Phobos-developers:develop Aug 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️T1 T1 maintainer review is sufficient Tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants