Cybah
Emperor
- Joined
- Jun 22, 2007
- Messages
- 1,481
Hi.
It seems that the custom code at onTechAcquired (CvEventmanager.py) does not work if your teammate acquires the Tech instead of you or if you use sethastech on another python location.
Example:
With my custom code you should get a Great Person if you are researching Tech X.
- If you are researching Tech X, you will get the Great Person.
- If your teammate researches Tech X, that Tech will be given to you too, but you will not get the Great Person.
- If a vassal researches that Tech and a code snippet will give that Tech to you (with .sethastech), you will not get the Great Person either.
Why?
It seems that the custom code at onTechAcquired (CvEventmanager.py) does not work if your teammate acquires the Tech instead of you or if you use sethastech on another python location.
Example:
With my custom code you should get a Great Person if you are researching Tech X.
- If you are researching Tech X, you will get the Great Person.
- If your teammate researches Tech X, that Tech will be given to you too, but you will not get the Great Person.
- If a vassal researches that Tech and a code snippet will give that Tech to you (with .sethastech), you will not get the Great Person either.
Why?