Customizable Multiple AI Conditions#696
Closed
handama wants to merge 5 commits intoPhobos-developers:developfrom
Closed
Customizable Multiple AI Conditions#696handama wants to merge 5 commits intoPhobos-developers:developfrom
handama wants to merge 5 commits intoPhobos-developers:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI Triggers
Customizable Multiple AI Conditions
AI Triggers can now have multiple conditions.
In an
AITriggerTypeinaimd.ini, its ConditionType must be set to-1, and ComparisonObject must be set to<none>. Comparator should be filled with 0 except for last 8 characters. Eighth to fifth from the bottom(xxxx) should be 0001 to enable this feature, and last 4 characters(yyyy) should be an index number fromAIConditionsListinrulesmd.ini. Notice: xxxx and yyyy are both decimal integers.In
aimd.ini:AIConditionhas multiple sections, and they are divided by/. The first part are two integers, defining the number of essential requirements and optional requirements. The rest parts have the same format:PickMode,CompareMode,Number,TechnoType. They define each requirement. The first few parts covered by the number of essential requirements are regarded as essential requirements, and the rest of them are regarded as optional requirements.In
rulesmd.ini:Available Pick Modes are:
Available Compare Modes are:
AIMinorSuperReadyPercentAIMinorSuperReadyPercentAIMinorSuperReadyPercentAIMinorSuperReadyPercentCompareModeis between 6-18,TechnoTypeshould be<none>. WhenCompareModeis between 6-8, 15-18,Numbershould be 0.Here is an example: