First of all I remind you, that Progress is game to play humans against humans, without AI. I'm not an AI expert and I decided to provide changes making writing good AI very expensive. If you be AI expert and will join to Progress team, don't scare - maybe we can find best solution.
What is effects iterators?
Imagine we will replace Great Wall wonder with Walls improvement. So defense of each city depends on how many walls user was built (in each city). So we got:
Code: Select all
[effect_great_wall]
name = "Defense_Bonus1"
value = 10
reqs =
{
"type", "name", "range"
"IterationOfCities", "City", "Player"
"Building", "Walls", "City"
}
Code: Select all
[effect_great_wall]
name = "Defense_Bonus1"
value = 10
reqs =
{
"type", "name", "range"
"IterationOfCities", "City", "Player"
"Building", "Great Wall", "Player"
"Building", "Walls", "City"
}
In future I will add triggers effect type. Triggers will be checked on each turn start and export symbols from effects. This could be also helpful.