turingmachine
Emperor
- Joined
- May 4, 2008
- Messages
- 1,438
Is there an easy way to trigger a LUA event when a specific tech is acquired?
I know I could probably use OnBeginTurn and check if isHasTech then run the event, but that seems like a waste as it would try to run it every turn. Additionally, I'd only like the code to run once.
I see GetLastTechAcquired, could that be used in this situation? (Would this keep checking until I research a new tech?)
(Basically, is there anything like the self.onTechAcquired python that was in Civ IV but in Civ V?)
I know I could probably use OnBeginTurn and check if isHasTech then run the event, but that seems like a waste as it would try to run it every turn. Additionally, I'd only like the code to run once.
I see GetLastTechAcquired, could that be used in this situation? (Would this keep checking until I research a new tech?)
(Basically, is there anything like the self.onTechAcquired python that was in Civ IV but in Civ V?)