Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map event 603: There are no technos of the specified houses list #1071

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

FS-21
Copy link
Contributor

@FS-21 FS-21 commented May 29, 2023

  • Returns True if there are no technos of the specified houses in the map.
  • The second parameter is a 0-based index for the AIHousesList section that specifies the list of possible HouseTypes that can be evaluated. The new AIHousesList section must be declared in rulesmd.ini for making this script work:

In mycampaign.map:

[Events]
...
ID=EventCount,...,601,0,[Index],...
...

In rulesmd.ini:

[AIHousesList]  ; List of HouseType lists
0=SOMEHOUSETYPE,SOMEOTHERHOUSETYPE,SAMPLEHOUSETYPE
1=ANOTHERHOUSETYPE,YETANOTHERHOUSETYPE
; ...

For example:

If you want to trigger the event if there are no units/structures of British, French and Germans houses (not related to players) then:

[Events]
01000000=1,601,0,1

[AIHousesList]
0=YuriCountry
1=British,French,Germans ; <---------- This line will be used in the Map event
2=Germans
3=...

@Starkku Starkku force-pushed the develop branch 2 times, most recently from aae92fd to a32076e Compare June 3, 2023 10:14
Copy link
Member

@MortonPL MortonPL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for a few small style changes and one terminology nitpick.

@github-actions
Copy link

github-actions bot commented Jul 21, 2023

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.

@Phobos-developers Phobos-developers deleted a comment from coderabbitai bot Jul 14, 2024
@FS-21 FS-21 changed the title Map event 601: There are no technos of the specified houses list Map event 603: There are no technos of the specified houses list Aug 30, 2024
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.

2 participants