[PYTHON] Trying to Spawn Great People onTechAcquired

Medicine_Man_55

Warlord
Joined
Mar 21, 2004
Messages
226
Location
Burnaby, BC, Canada
Hello folks - I am working on a simple mod and am trying to reproduce a game mechanic that was used in the Rise of Rome scenario many years back. I have added five repeatable technologies and I want each to spawn a different great person when acquired.

Unfortunately, I cannot for the life of me get my custom onTechAcquired python call to trigger when one of the techs is researched. Either I am not including the Event Manager properly or there is something buggered sideways in my code. I have not ever built a Civ4 mod from the ground up, so I'm not sure if there is some gotcha I'm overlooking.

I have a CvEventInterface file set up in EntryPoints and a CvModnameEventManager in the Python folder and it looks to my eyes like it should work. Would it be appropriate to paste code here to get some more experienced eyes on my work?

Cheers.
 
You should look at mods that already do this like FFH and see how they did it. That's the fastest way to figure things out in my experience.
 
Top Bottom