Search found 35 matches

by ckarai
March 28th, 2008, 1:51 pm
Forum: Coder’s Corner
Topic: Need assistance with Formula AI
Replies: 35
Views: 8372

Re: Need assistance with Formula AI

It's very similar to the villages. The same algorithm can be used to locate the forest fields.

I think this feature would be important, as it makes resource collecting possible.
by ckarai
March 28th, 2008, 1:34 pm
Forum: Coder’s Corner
Topic: Need assistance with Formula AI
Replies: 35
Views: 8372

Re: Need assistance with Formula AI

> There is no way to do that in WML I think (other than checking the terrain for every tile and computing it all manually), but depending on the map, that might not be all that bad. It won't work. Imagine, that the following situation: F = forest E = enemy unit C = chopper O = other F F O O F F E O ...
by ckarai
March 28th, 2008, 10:20 am
Forum: Coder’s Corner
Topic: Need assistance with Formula AI
Replies: 35
Views: 8372

Re: Need assistance with Formula AI

I have a problem. For chopping I have to find the nearest forest tile. - store_locations can tell me every forest tiles How can I get the minimum distance (with movement costs) from one forest tile to the chopper unit? The filter has a radius parameter, but I think, that it doesn't compute the movem...
by ckarai
March 28th, 2008, 9:30 am
Forum: Coder’s Corner
Topic: Need assistance with Formula AI
Replies: 35
Views: 8372

Re: Need assistance with Formula AI

Thanks, I'll try it. I'm very new in developing WML. My first impression of WML is, that it can be used for a lot of things, but it's quite hard to learn. As I am a software developer, I think, that an average computer user will never be able create his/her own campaign using WML. The planned scenar...
by ckarai
March 28th, 2008, 7:23 am
Forum: Coder’s Corner
Topic: Need assistance with Formula AI
Replies: 35
Views: 8372

Re: Need assistance with Formula AI

Hi! I intend to construct a woodchopper unit. A woodchopper chops wood and gives money to the owner of the unit. The main goal in this scenario would be to stop destroying the forest. The AI should find the nearest forest-like terrain, and go there to chop the wood. Can it be made with formula_ai? I...