Skip to content

Conversation

@FS-21
Copy link
Contributor

@FS-21 FS-21 commented Dec 5, 2025

  • By default, the game evaluates all map triggers in parallel. Adding this map event forces short-circuit evaluation as soon as any subsequent event returns false.
  • This only affects evaluation from this control event (inclusive) to the last event in the list.
  • All events placed before this control event still work in a non-short-circuiting manner.
  • Sequential events will not begin evaluation until all preceding events have successfully completed.

In mycampaign.map:

[Events]
...
ID=EventCount,...,1000,0,0,0,...
...

@FS-21
Copy link
Contributor Author

FS-21 commented Dec 5, 2025

So if you have:

TRIGGER_ID=4,E1,E2,E3,E4
E1, E2, E3 & E4 are executed in parallel as always happened. Is the same as:
TRIGGER_ID=5,E1,E2,E3,E4,1000

TRIGGER_ID=5,1000,E1,E2,E3,E4
E1, E2, E3 & E4 are executed in sequential order.

TRIGGER_ID=5,E1,1000,E2,E3,E4
E1 is executed in parallel as always happened.
E2, E3 & E4 are executed in sequential order. Only start when all the parallel events are completed.

TRIGGER_ID=5,E1,E2,1000,E3,E4
E1 & E2 are executed in parallel as always happened.
E3 & E4 are executed in sequential order. Only start when all the parallel events are completed.

TRIGGER_ID=5,E1,E2,1000,E4
E1, E2, E3 are executed in parallel as always happened.
E4 is executed in sequential order. Only start when all the parallel events are completed.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

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.

FS-21 added 3 commits December 5, 2025 22:56
Small useful debug notification for map makers
@FS-21 FS-21 marked this pull request as draft December 11, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant