Skip to content

Dynamic Team Delays#2244

Merged
Coronia merged 7 commits into
Phobos-developers:developfrom
Coronia:dynamic-teamdelays
Jun 9, 2026
Merged

Dynamic Team Delays#2244
Coronia merged 7 commits into
Phobos-developers:developfrom
Coronia:dynamic-teamdelays

Conversation

@Coronia

@Coronia Coronia commented Jun 6, 2026

Copy link
Copy Markdown
Contributor
  • It is now possible to make TeamDelays in skirmish changed dynamically based on player's amount.
  • TeamDelays.DynamicType controls how team delay will be changed. Neutral houses and observers won't be accounted in all the following patterns.
    • startingpoint: taking the map's NumberStartingPoints into account.
    • playercount: taking the total amount of players into account, including itself.
    • allies: taking the amount of allied players into account, excluding itself.
    • enemies: taking the amount of hostile players into account.
    • alivecount: taking the amount of players that's not defeated at the moment into account, including itself.
    • aliveallies: taking the amount of allied players that's not defeated at the moment into account, excluding itself.
    • aliveenemies: taking the amount of hostile players that's not defeated at the moment into account.
  • TeamDelays.CountN control the team delay when the amount of players meets the above conditions, where N stands for an integer between 1-8. Consisted by 3 integers that represent each difficulty.
    • If a dynamic team delay is not set for this player amount or difficulty, it'll default to [General] -> TeamDelays.

In rulesmd.ini:

[Gneral]
TeamDelays.DynamicType=startingpoint    ; Dynamic Team Delay Type Enumeration (startingpoint|playercount|allies/ally|enemies/enemy|alivecount|aliveallies/alliveally|aliveenemies|aliveenemy)
TeamDelays.CountN=                      ; List of 3 integers indicating AI's TeamDelays in Difficult / Normal / Easy game diffculty.

Note

Team delay change will take effect for a house after its next AI team is created.

@Coronia Coronia added Needs testing ⚙️T1 T1 maintainer review is sufficient labels Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 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.

Comment thread src/Ext/Rules/Body.cpp Outdated
Comment thread src/Ext/Rules/Body.h Outdated
@Coronia Coronia requested a review from Otamaa June 8, 2026 14:45
Comment thread src/Ext/House/Hooks.cpp
Comment thread docs/AI-Scripting-and-Mapping.md
Comment thread docs/AI-Scripting-and-Mapping.md Outdated
@Coronia Coronia merged commit 3473638 into Phobos-developers:develop Jun 9, 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.

5 participants