unique or racial technologies |
Me again. If I make a new replacement component for a race, is there a way to remove the stock version of the component from that races tech tree only. Example: I made a new bridge (new picture, new name, no other changes at this time), that I want the new race to use exclusively. It shows up and it works fine, but so does the stock bridge. Eventually I want to make custom componenets for all my races, but first I just want to seperate them (renaming, new pics). Later down the road I'll start changing stats for each component per race. I made a racial tech trait called general tech that I thought I could use so the other races could use the stock bridge but not my new race. If I pick the techs thats fine, but how do I get neutral races to pick this "general tech trait"? Any help would be appreciated.
Re: unique or racial technologies
Neutral races do not expand beyond their home system, since their ships are physically prevented from traveling through WPs. You cannot manually create a neutral race, however. All empires manually created will be full-blown empires.
To make AI races select a new trait, you have to edit the empire setup script for each such race. The script source files are in utilities\script parser.
To remove an component for those with trait A, simply add a NOT racial requirement to it. Lets say you are adding an "Organic Brain", which will replace the "Ship Bridge." The racial requirement for Organic Brain is easy, and I gather you get how to do it already. To make the "Ship Bridge" unavailable to those with the Organic trait, simply make the requirements say:
Number Of Requirements := 2
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Light Hull Construction.
Requirement 1 Formula := Get_Empire_Tech_Level("Light Hull Construction") >= (1 + ([%Level%] - 1))
Requirement 2 Description := Empire must not have racial trait Organic Manipulation.
Requirement 2 Formula := NOT(Empire_Has_Racial_Trait("Organic Manipulation"))
If you don't want regular empires to have the extra description tag for the requirements list, you can simply remove the value of the Requirement 2 Desc. field, like so:
Requirement 2 Description :=
Requirement 2 Formula := NOT(Empire_Has_Racial_Trait("Organic Manipulation"))
NOTE: I make no guarantees as to how SE5's parser will handle the spacing, but the logic itself is correct.
Re: unique or racial technologies
Try adding a space after NOT... or play with capitalization. It is definitely an accepted unary operator.
Re: unique or racial technologies
thanks this has helped with many objects i needed to work
Re: unique or racial technologies
If you don't want regular empires to have the extra description tag for the requirements list, you can simply remove the value of the Requirement 2 Desc. field, like so:
Requirement 2 Description :=
Requirement 2 Formula := NOT(Empire_Has_Racial_Trait("Organic Manipulation"))
NOTE: I make no guarantees as to how SE5's parser will handle the spacing, but the logic itself is correct.
There's another way to do that as one requirement instead of two:
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Light Hull Construction.
Requirement 1 Formula := Get_Empire_Tech_Level("Light Hull Construction") >= (1 + ([%Level%] - 1)) AND NOT(Empire_Has_Racial_Trait("Organic Manipulation"))
I've used this method quite a bit to remove "racial only" tech from my game yet still allow those who get the racial traits to start with them without having to do several years of research to meet the requirements. Although I've been using the bulkier formula:
Requirement 1 Formula := IIF(Empire_Has_Racial_Trait("Organic Manipulation"), Get_Empire_Tech_Level("Insert tech that only got to 2") >= 3, Get_Empire_Tech_Level("Light Hull Construction") >= (1 + ([%Level%] - 1))






Re: unique or racial technologies
Sorry, forgot: I could create the neutrals myself and give them this trait, but how would I prevent them from expanding?