Any way to remove a great person that has merged with a city?

VOID alterSpecialistCount(SpecialistType eIndex, INT iChange)
int (int /*SpecialistTypes*/ eIndex, int iChange)


SpecialistTypes:

-1 = NO_SPECIALIST
0 = SPECIALIST_CITIZEN
1 = SPECIALIST_PRIEST
2 = SPECIALIST_ARTIST
3 = SPECIALIST_SCIENTIST
4 = SPECIALIST_MERCHANT
5 = SPECIALIST_ENGINEER
6 = SPECIALIST_GREAT_PRIEST
7 = SPECIALIST_GREAT_ARTIST
8 = SPECIALIST_GREAT_SCIENTIST
9 = SPECIALIST_GREAT_MERCHANT
10 = SPECIALIST_GREAT_ENGINEER

I haven't tested to be sure, but presumably ichange is ok to be negative. So hopefully:

cycity.alterSpecialistCount(SPECIALIST_GREAT_PRIEST,-1)

is approximately what you want.
 
Thank you very much. I searched the API for the phrases "GreatPeople" and "GreatPerson" (which there are a few of) so that's why I missed it. Digging in the wrong place, :crazyeye:

My assassin unit may gain a new ability in the near future. :)

Roger Bacon
 
OK, I have my code working now.

The function was actually

VOID changeFreeSpecialistCount(SpecialistType eIndex, INT iChange)
int (int /*SpecialistTypes*/ eIndex, iChange

to remove great people that settle in a city.

alterSpecialistCount seems to be for non-great people.

Roger Bacon
 
Top Bottom