Posted: Mon May 16, 2022 6:04 am Post subject:
Some AI questions
I'm experimenting with the AI and there are some things I noticed:
- For new base defenses it does not respect BuildLimit.
- For new units it does not respect prerequisites; it will build very powerful units without the prerequisite requirements.
If for the defenses, that's not much of an issue, for prerequisites there's a problem. Is there any way to fix this ?
- How does AI Trigger TechLevel work ?
Does this affect the above ?
Does it relate to the TechLevel of the used units ?
The AI ignores the BuildLimit & Prerequisites setting on the unit's rules code, they are only used to limit the player.
TechLevel= on TeamTypes is old code leftover from previous games & doesn't do anything. You need to instead use the TechLevel setting on the trigger to control when a team can be built.
The AI's current tech level is determined by what buildings they own, for example a barracks has TechLevel=2 so when built they can then use any AI triggers up to tech level 2, tech centers have TechLevel=8, so again once built the they can then use level 8 triggers etc.
You can also use a trigger that has the condition of "if" AI owns a tech center (or any specific building) then build powerful units etc, this will give you the most direct control over what the AI builds & when. _________________
Last edited by Mig Eater on Mon May 16, 2022 7:14 am; edited 1 time in total QUICK_EDIT
I assumed the TechLevel-Trigger thing but was not sure how it works; thanks for clearing it up. I will do some testing with conditions. _________________ Red Alert 2 Yuri's Revenge Apocalypse mod:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum