Event - when Great Person is born

Krajzen

Deity
Joined
Oct 23, 2013
Messages
3,946
Location
Poland
...I'm interested in making a trait

<when a Great Person is born civ receives Golden Age boost>

while I know how to make GA boost, what is the line for <when a GP is born>? I have only seen <when a GP is expended>

thanks ;)
 
Is it maybe Player:GetGreatPeopleCreated()?

or maybe it could be somehow simulated with City:GetGreatPeopleProgress()?
 
I have some code that fires an event when a unit is created. Hook into it, test if the unit:IsGreatPerson() and if the unit's owner is the civilization with the trait. If so, player:ChangeGoldenAgeTurns (or whatever effect you want).
 
Back
Top Bottom