Help me upgrade my mod

Mangov

Chieftain
Joined
Jan 10, 2019
Messages
31
Hello i made mod to add a wildcards and i want to ask you can i change the code so i make it work with what ever civilization i choose in creating game not with what i write in the code ( CIVILIZATION_HUNGARY in this code). The way i made it now i have to open and edit the file every time i decide to play different civ.

INSERT INTO Types (Type,Kind) VALUES ('TRAIT_CECO_WILDCARD','KIND_TRAIT');

INSERT INTO Traits (TraitType,Name,Description)
VALUES ('TRAIT_CECO_WILDCARD','LOC_TRAIT_CECO_WILDCARD_NAME','LOC_TRAIT_CECO_WILDCARD_DESCRIPTION');

INSERT INTO TraitModifiers (TraitType,ModifierId)
VALUES ('TRAIT_CECO_WILDCARD','TRAIT_WILDCARD_GOVERNMENT_SLOT');

INSERT INTO CivilizationTraits (CivilizationType,TraitType)
VALUES ('CIVILIZATION_HUNGARY','TRAIT_CECO_WILDCARD2');
 
You can use the same trait for many civs. So, the last insert can be repeated.
If you don’t want to repeat it, then use insert into () select from... statement.
Anyway, the trait has „2” at the end, and is different than the one defined.
 
My problem is that i dont want to chage CIVILIZATION_HUNGARY every time. I want the mod to make the changes acording to the civ i choose in game menu, not in the mod code. About the 2 it is because i use 2bonus cards and i copied the wrong line of code, but it works.
 
Totally misunderstood you.
You need a trait then that is attached to all civs but active only for a human player. I assume you want it for SP, so you will be the only human player.
REQUIREMENT_PLAYER_IS_HUMAN is for that.
 
Yea that is what i want. But where and how to add it. I can make it work for all with this but where to put that requirement

INSERT INTO CivilizationTraits (CivilizationType,TraitType) VALUES
('CIVILIZATION_AMERICA','TRAIT_GDG_CIVILIZATION_ROADS_TO_CAPITAL'),
('CIVILIZATION_ARABIA','TRAIT_GDG_CIVILIZATION_ROADS_TO_CAPITAL'),
('CIVILIZATION_BRAZIL','TRAIT_GDG_CIVILIZATION_ROADS_TO_CAPITAL'),
('CIVILIZATION_CHINA','TRAIT_GDG_CIVILIZATION_ROADS_TO_CAPITAL'),
 
Back
Top Bottom