Is there a way to set starting tech on a race basis? |
My mod is close to have a descent AI going, but there is one thing i want to add : a race by race starting tech. In practice i want my race to have some tech given to them for free at the start of the game so each race has some flavor added to them. But until now i haven't found a way to implement this. I know i can set this for all race, but it's not what i want...
Any ideas?
Racial trait
The other method is a racial trait. You can make components that simply require a racial trait, no research.

AI & Starting Tech Selection
The AI though is able to pick racial traits for startup selection though. 
-----

Scripting
-----
I didn't think it would recognize new trait unless it was included in its scripts, though...
_______________________
There are 10 types of people in the world:
Those that understand binary, and those that don't.
sub
No, you misunderstood me.
In components.txt, instead of
Get_Empire_Tech_Level("Computers") >= (1 + ([%Level%] - 1))
do
Empire_Has_Racial_Trait("Organic Manipulation")
where "Organic Manipulation" is the name of the trait you want.
No problem.
You can do that as well, you just have to fiddle with the requirements a bit.
Say..
iif(Empire_Has_Racial_Trait("Organic Manipulation"), Get_Empire_Tech_Level("Computers") >= (1 + ([%Level%])), Get_Empire_Tech_Level("Computers") >= (1 + ([%Level%] - 1)))
What that does is if the empire has Organic Manipulation, they get a bonus level in this particular tech. Adjust the numbers to taste.
You can also make it so they *start* with that tech, then advance normally, like so:
Two requirements.
Requirement 1:
Get_Empire_Tech_Level("Computers") >= (1 + ([%Level%] - 1)) OR Empire_Has_Racial_Trait("Organic Manipulation")
requirement 2: the formula I listed originally.




When you create your empire,
When you create your empire, you are given the option of choosing some technologies to start the game with. Oddly enough you can't choose technology which requires a specific racial trait, but if I get where you're going with this, all you'll need to do is make some prepared empire files for players to use with your mod and you should be good to go!
~~~
Check out the 21st Century Mod!