CurtSibling
ENEMY ACE™
From the function reference
researchCost (get)
tribe.researchCost -> integer
Returns the research cost of the tribe.
researchProgress (get/set)
tribe.researchProgress -> integer
Returns the progress towards the current research (range between 0 and tribe.researchCost).
researching (get/set)
tribe.researching -> tech
You can check what each player is researching, and how close they are to completion. If you want to give cash as soon as research starts, then check every turn (or after production) whether tribe.researching is the appropriate tech, and use gen.justOnce to give the bonus on the first turn that research goal is detected.
Alternatively, you can give a small bonus of a few units each turn that the technology is being researched, so the buildup is a bit more gradual.
Thanks, Prof!
These are all amazing options...
Lua truly is a marvel for designers. I do like the last option with armies being amassed gradually...I think I will go with that route.
This code would be entered into "afterProduction", I am guessing? Could you be kind enough to sketch out a quick event outline for me?
PS
I know you are busy, dude - and all these questions are a pest, but I am eager to learn from the wizard...!