Ormand
Posts: 682
Joined: 2/17/2009 Status: offline
|
I think the answer is "it depends". If it is a resource that the AI must decide to produce, I believe the answer is no, although, there might be some algorithms that check for dependencies and then tries to set production. I tend to think not due to the fact that it is reported that late in some games, the AI has trouble producing supplies for its units. But, I am not sure. I can see how it would be possible to check for requirements on production and then adjust. It would basically have to be an adaptive loop. As far as to whether the AI is limited by the resource needs. In principle, yes. There is an event that is called to make the AI's production resource compliant. Thus, I think the production would be adjusted to make it compliant to the available resources. Namely, what is in the inventory (which, by the way should be a regime variable). If you have sources for these resources, then the resources will increase each turn, and be consumed with production. The AI will likely not be able to take the resources into account when deciding what to build, but will be limited by available resources with the resource compliant event. On the other hand, if the the resources need to be produced, you will need to make events to make this happen. If you have sources that need to be upgraded or somehow improved, you will need to write events that will do this. Currently, the AI actually gets a resource bonus each turn, and every turn has a well defined probability to upgrade each oil and ore resource. You would have to add your sources to this event.
|