 |
|
E
|
 |
July 24,2005 Ctp2 Tiles in sig!
May 1999 time: 21:37
|
|
fortification and supply unit hmmm I guess it would just require addind an additional flag for imps and units and then a check at the position of the unit...
Yeah I'd like the AI to "think" about it to, but as my code attempts show I think AI is out of my league for now.
Last edited by E on 28-03-2005 at 08:34
|
|
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:37
|
|
quote: Originally posted by E
fortification and supply unit hmmm I guess it would just require addind an additional flag for imps and units and then a check at the position of the unit...
Yeah I'd like the AI to "think" about it to, but as my code attempts show I think AI is out of my league for now. |
The easiest solution to this is, to check on the BeginTurnUnit event whether the unit can be upgraded and if it can upgrade it. Of course this has nothing to do with strategic planing but is better than nothing.
quote: Originally posted by Maquiladora
Units can only be upgraded within a city, a fortification or perhaps when grouped with a "supply" unit? |
Why so restrictive? It should be up to the modder how it works, whether the unit needs to be in a city or can be upgraded on high sea.
-Martin
Last edited by Martin Gühmann on 28-03-2005 at 23:08
|
|
|  |
 |
|
Maquiladora
|
|
Well that was my point Martin, that it should be possible with a unit (called "supply unit" as an example) with a flag present on the same tile as the unit wanting to be upgraded, a certain city improvement present in the city, a flag for tile improvements capable of it, whatever, so its all possible.
|
|
|  |
All times are GMT. The time now is 05:37. Apolyton Time is 00:37. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|