Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Extension to GetGreatPerson #6

Open
slothoth opened this issue Oct 11, 2024 · 0 comments
Open

Request: Extension to GetGreatPerson #6

slothoth opened this issue Oct 11, 2024 · 0 comments

Comments

@slothoth
Copy link

slothoth commented Oct 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant