[Vanilla] Give civ great person

fb2017

Chieftain
Joined
Oct 8, 2017
Messages
53
Hi!

I want to give a Civilization a great general if the civ enters a new era. How can I do that? And how do I check if the civ has a certain trait?

Thanks!
 
This one can be tricky since it requires a lua script to do, since I dont think you can reward Great People*
* = I stand to be corrected.

Best way to go about it is record the civ's GGP, adding the nessasary remainder required to get the general, wait for them to spawn the Great General unit, and then add the recorded number back into the their GPP pool. Use the PlayerEraChanged event as the first step to get the player era changed, and UnitAddedToMap event as the second step to give back the banked GPP.
 
T
This one can be tricky since it requires a lua script to do, since I dont think you can reward Great People*
* = I stand to be corrected.

Best way to go about it is record the civ's GGP, adding the nessasary remainder required to get the general, wait for them to spawn the Great General unit, and then add the recorded number back into the their GPP pool. Use the PlayerEraChanged event as the first step to get the player era changed, and UnitAddedToMap event as the second step to give back the banked GPP.
Thanks! I'm new to Lua though, so I don't really know where to start, but I'll try!
 
Back
Top Bottom