I'm trying to make it so some buildings give extra great person points during golden ages. I am using Keniisu's R&F Civ template. This is my first mod. I kinda know what I'm doing in the ModBuddy, but I'm not entirely sure how SQLite works. Here is what I have in the UA sql: (there's probably a lot wrong here...)
Code:
--/==========================================================================================================================
-- Civilization Traits
-------------------------------------
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_OLEE_BOHEMIA', 'TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA' ); -- Assigns Trait to Civilization
-------------------------------------
-- Types
-------------------------------------
INSERT INTO Types
(Type, Kind)
VALUES ('TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA', 'KIND_TRAIT'); -- Defines Trait as, well, a Trait.
-------------------------------------
-- Traits
-------------------------------------
INSERT INTO Traits
(TraitType, Name, Description)
VALUES ('TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA', 'LOC_TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA_NAME', 'LOC_TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA_DESCRIPTION'); -- Assigns Info to the Trait such as Name and Description
-------------------------------------
-- TraitModifiers
-------------------------------------
INSERT INTO TraitModifiers
(TraitType, ModifierId)
VALUES ('TRAIT_CIVILIZATION_OLEE_BOHEMIA_UA', 'OLEE_NOVE_MESTO'); -- Assigns the Modiifer to the Trait
------------------------------------------------------------------------
-- Modifiers
------------------------------------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, SubjectRequirementSetId)
VALUES ('OLEE_NOVE_MESTO', 'MODIFIER_PLAYER_ADJUST_GREAT_PERSON_POINTS', 'BUILDING_IS_LIBRARY'), -- Setups the Modifier to be a Modifier adjusting Great Person Point to a District if that District is a Campus
'PLAYER_HAS_GOLDEN_AGE');
------------------------------------------------------------------------
-- Modifier Arguments
------------------------------------------------------------------------
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('OLEE_NOVE_MESTO', 'Amount', 1), -- Sets the Modifier's Value to "1" making it so the Great Person point is increased by 1
('OLEE_NOVE_MESTO', 'GreatPersonClassType', 'GREAT_PERSON_CLASS_SCIENTIST'); -- Makes it so it assigns the Point to a Great Scientist.
------------------------
Last edited: