[Vanilla] Projects as Traits for custom civs?

Do you have any experience with civ6 modding?

  • Yes, I published some mods already.

    Votes: 2 50.0%
  • Yes, I did my own civ.

    Votes: 0 0.0%
  • Yes, but I dont know much.

    Votes: 2 50.0%
  • No.

    Votes: 0 0.0%

  • Total voters
    4

Geez437

Chieftain
Joined
Oct 8, 2018
Messages
2
Hey guys, i have successfully created my own civ and project (If i dont want to have it as a trait i can produce it without any problems). Now i would like to add this created project as a trait for my custom civ.

I could already add custom buildings as a trait for my civ. I have tried to use a similar method to add a project as a trait but it didn't work properly.

My trait will be shown as a trait in the loading screen and the 'pick your leader' screen. But if i want to choose my project to be produced in the city it won't show up.

So I have got the following question: Did anyone add a project as a trait for a leader/civ? Is it possible?
Maybe i cannot transfer the way I add buildings as traits for civs.

Thanks for any ideas or answers

Geez437
 
Table Projects has no TraitType Column:
Code:
CREATE TABLE "Projects" (
		"ProjectType" TEXT NOT NULL,
		"Name" TEXT NOT NULL,
		"ShortName" TEXT NOT NULL,
		"Description" TEXT,
		"PopupText" TEXT,
		"Cost" INTEGER NOT NULL,
		"CostProgressionModel" TEXT NOT NULL DEFAULT "NO_PROGRESSION_MODEL",
		"CostProgressionParam1" INTEGER NOT NULL DEFAULT 0,
		"PrereqTech" TEXT,
		"PrereqCivic" TEXT,
		"PrereqDistrict" TEXT,
		"VisualBuildingType" TEXT,
		"SpaceRace" BOOLEAN NOT NULL CHECK (SpaceRace IN (0,1)) DEFAULT 0,
		"OuterDefenseRepair" BOOLEAN NOT NULL CHECK (OuterDefenseRepair IN (0,1)) DEFAULT 0,
		"MaxPlayerInstances" INTEGER,
		"AmenitiesWhileActive" INTEGER,
		"PrereqResource" TEXT,
		"AdvisorType" TEXT,
		PRIMARY KEY(ProjectType),
		FOREIGN KEY (PrereqTech) REFERENCES Technologies(TechnologyType) ON DELETE SET DEFAULT ON UPDATE SET DEFAULT,
		FOREIGN KEY (PrereqCivic) REFERENCES Civics(CivicType) ON DELETE SET DEFAULT ON UPDATE SET DEFAULT,
		FOREIGN KEY (PrereqDistrict) REFERENCES Districts(DistrictType) ON DELETE SET DEFAULT ON UPDATE SET DEFAULT,
		FOREIGN KEY (VisualBuildingType) REFERENCES Buildings(BuildingType) ON DELETE SET DEFAULT ON UPDATE SET DEFAULT,
		FOREIGN KEY (PrereqResource) REFERENCES Resources(ResourceType) ON DELETE SET DEFAULT ON UPDATE SET DEFAULT,
		FOREIGN KEY (ProjectType) REFERENCES Types(Type) ON DELETE CASCADE ON UPDATE CASCADE);
The only way you might be able to accomplish this is via a modifier that is then added to one of a Leader's or Civilization's Traits. The modifier would allow the "construction" of the Project, but I would think the structuring of the Requirements might be a nightmare, if at all possible. The set-up of the modifier and its requirements would have to act as a "dis-abler" for all other Leaders and Civilizations, I would think. The project itself would have to be allowed as if it were a normal project in the "Projects" table, so that the modifier is essentially making the project unavailable to anyone but the specific Leader or Civilization.

I'm not even sure there is a ModifierType that is a "Allow Project".
 
If your civ has a unique district you can make that the only pre-req for the project. Not sure if that would fit in with the rest of OP's civ design.
 
Back
Top Bottom