Posted 7-Feb-06 00:12 by Frank

units upkeep?

: Most units have no upkeep/support? Is this correct?
:

Only your first settler needs no support, all other units are supported by their home cities.

: And further more how do I get the information of the unit upkeep/support? somewhere in protocol.pas?
: I couldn't find it.
:

TUn=packed record
Loc, {location}
Status, // free for AI use
SavedStatus: LongInt; // for server internal use only
ID: word; // unit number, never changes, unique within this nation
mix, {model index}
Home, {home city index, -1 if none}
Master, {index of transporting unit, -1 if none}
Movement: SmallInt; {movement left for this turn}
Health, // = 100-Damage
Fuel: ShortInt;
Job, {current terrain improvement job}
Exp, {micro experience, the level is Exp div ExpCost}
TroopLoad, {number of transported ground units}
AirLoad: Byte; //number of transported air units
Flags: Cardinal;
end;

The home city is indexed by "Home".

: It seem there is alot of information which the AI just have to "know" and can't get from the game.

???
What information are you missing? The read-only-block offers you nearly all information you need.
(Wer sucht, der findet ...)


Frank

Answer This Posting

Name

eMail (spider-safe)

Subject

Text

Administration

Password