Vadus
pretend the impossible
Hi all,
I want to change the production of a city from script. (e.g. change from a Warrior-Production to Spearmen-Production )
Therefore I found the following methods of CyCity :
VOID setProduction(INT iNewValue)
not documented
VOID changeUnitProduction(UnitType iIndex, INT iChange)
adjusts production towards UnitID by iChange
VOID chooseProduction(UnitType eTrainUnit, BuildingType eConstructBuilding, ProjectType eCreateProject, BOOL bFinish)
Chooses production for a city
so, which one is the right method for that ?
And what for an integer value should I take as iNewValue resp. iChange ?
If the third method is the right one : what for a value do I have to take for eConstructBuilding and eCreateProject when I just want to choose a unit ( e.g. Spearmen ) ??
I want to change the production of a city from script. (e.g. change from a Warrior-Production to Spearmen-Production )
Therefore I found the following methods of CyCity :
VOID setProduction(INT iNewValue)
not documented
VOID changeUnitProduction(UnitType iIndex, INT iChange)
adjusts production towards UnitID by iChange
VOID chooseProduction(UnitType eTrainUnit, BuildingType eConstructBuilding, ProjectType eCreateProject, BOOL bFinish)
Chooses production for a city
so, which one is the right method for that ?
And what for an integer value should I take as iNewValue resp. iChange ?
If the third method is the right one : what for a value do I have to take for eConstructBuilding and eCreateProject when I just want to choose a unit ( e.g. Spearmen ) ??
