You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it stands, there is not much capability for UnitCommand actions in Civ, so while Lua unique actives are doable, the ai does not take advantage of them.
The AI does use GreatPerson actives reasonably well however, and there are several modifier attachment options on plots, on cities, on units within x tiles, on players. There are also a reasonable set of conditions when the GreatPerson active is available.
It is possible to make new great people types and spawn them in programmatically, but it has some limitations. Units have to be spawned on a city, and even the specific city can’t be chosen. This means there isn’t any opportunity for upgrading into a unit with a great person active, or for a unit to gain the ability to use a great person active.
There is some functionality to deal with these GreatPerson parts in Lua, under Unit:GetGreatPerson().
And there must be some functionality under the hood that grants the attributes and specific GreatPerson to a unit, when a great person is recruited.
If we could have some functionality in Lua to assign a given GreatPersonIndividual to a unit, this would allow a lot of new gameplay that the AI could also use.
This would be a good "lite" version of getting custom UnitCommands.
The text was updated successfully, but these errors were encountered:
As it stands, there is not much capability for UnitCommand actions in Civ, so while Lua unique actives are doable, the ai does not take advantage of them.
The AI does use GreatPerson actives reasonably well however, and there are several modifier attachment options on plots, on cities, on units within x tiles, on players. There are also a reasonable set of conditions when the GreatPerson active is available.
It is possible to make new great people types and spawn them in programmatically, but it has some limitations. Units have to be spawned on a city, and even the specific city can’t be chosen. This means there isn’t any opportunity for upgrading into a unit with a great person active, or for a unit to gain the ability to use a great person active.
There is some functionality to deal with these GreatPerson parts in Lua, under Unit:GetGreatPerson().
And there must be some functionality under the hood that grants the attributes and specific GreatPerson to a unit, when a great person is recruited.
If we could have some functionality in Lua to assign a given GreatPersonIndividual to a unit, this would allow a lot of new gameplay that the AI could also use.
This would be a good "lite" version of getting custom UnitCommands.
The text was updated successfully, but these errors were encountered: