New Units by Calendar Date?

Yes, this could be done in python I believe... probably through using the cannotTrain python function. This is not something, however, that I would recommend doing in the SDK since this seems like a mod-specific requirement that would need to be very flexible.
 
Yeah, I only brought this up with the idea of implementing it in my WWII scenario -- so: very specific use here. Linking aircraft types to techs is fine up to a point, but in some cases, I hate see early jets and other 1944 aircraft showing up in 1943... so for some of these aircraft types, there needs to be both a tech and a year requirement governing their availability. This is more of a flavor thing than a absolute technical thing.
 
Simple solution, a la Desert War.

1) Make a tech the prereq for a plane, and make it unresearchable.

2) Give that tech to a player automatically upon a certain date (turn).

Problem solved. :D

If you want to go even further, have two prereqs for the plane, such that you need both in order to build it (one being the unresearchable tech and another just an ordinary tech). Then, if you do not have the researchable tech when you arrive at the target date, you still can't build the plane. However, if you do research it before that date you still won't be able to build it, because you don't have the unresearchable tech. This way you can control precisely the earliest time when it will be available.
 
Back
Top Bottom