Techs are a per-team thing - everyone on the same team has the same techs. You need to get the player's team object first which is done in most places by
- iTechID is the tech number you want to give (defined by the order in XML).
- bNewValue I'm not sure about, you can probably pass in true and it'll be okay.
- iPlayer is the player who is getting the tech (iPlayerID in this case)
- bFirst is whether or not this team is the first to get the tech (for things like awarding religions and great people)
- bAnnounce I think is whether or not the fact that the team got the tech is announced to either that player/team or to everyone, I'm not sure which.
Thanks Trip, you're really doing that line in your signature justice.
I had already tried that method, but it seems I haven't entirely gotten the hang of the Python objects and stuff yet. Got it to work with your help.
Thanks again!
_____
rezaf
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.