sunny19879394
Chieftain
- Joined
- Dec 11, 2019
- Messages
- 29
Hi this is my first time to sign up and post things here but I have been browsing this site for years and thanks for the gametips.
Back to the problem. I am new to modding and I am trying to make a mod of my home city Hong Kong, using Keniisu's template. There are some features that I was trying to add but the effect just did not come out during the game.
I was trying to borrow Cleopatra's ability and want to set +4 gold for each international trade route I sent and +2 science, +3 culture for every trade route I receive. Attached are the code. Actually I just borrow heavily from cleopatra but dunno why it doesn't work. I tried to solve it for few days but cannot work T.T
Many thanks if someone can help T.T ( Only the codes related to this ability is shown. Other abilities are working.)
Back to the problem. I am new to modding and I am trying to make a mod of my home city Hong Kong, using Keniisu's template. There are some features that I was trying to add but the effect just did not come out during the game.
I was trying to borrow Cleopatra's ability and want to set +4 gold for each international trade route I sent and +2 science, +3 culture for every trade route I receive. Attached are the code. Actually I just borrow heavily from cleopatra but dunno why it doesn't work. I tried to solve it for few days but cannot work T.T
Many thanks if someone can help T.T ( Only the codes related to this ability is shown. Other abilities are working.)
Code:
INSERT INTO Types
(Type, Kind )
VALUES ('TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA', 'KIND_TRAIT' ),
('MODTYPE_SUNNY_HONGKONG_UA_TRADE_FROMOTHERS', 'KIND_MODIFIER' ),
('MODTYPE_SUNNY_HONGKONG_UA_TRADE_GOLD', 'KIND_MODIFIER' );
-----------------------------------------------
-- Traits
-----------------------------------------------
INSERT INTO Traits
(TraitType, Name, Description )
VALUES ('TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA', 'LOC_TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA_NAME', 'LOC_TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA_DESCRIPTION' );
-----------------------------------------------
-- CivilizationTraits
-----------------------------------------------
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_SUNNY_HONGKONG', 'TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA' );
-----------------------------------------------
-- TraitModifiers
-----------------------------------------------
INSERT INTO TraitModifiers
(TraitType, ModifierId )
VALUES
('TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA', 'MODIFIER_SUNNY_HONGKONG_UA_TRADE_SCFROMOTHERS' ),
('TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA', 'MODIFIER_SUNNY_HONGKONG_UA_TRADE_CLFROMOTHERS' ),
('TRAIT_CIVILIZATION_SUNNY_HONGKONG_UA', 'MODIFIER_SUNNY_HONGKONG_UA_TRADE_GOLD' );
-----------------------------------------------
-- DynamicModifiers
-----------------------------------------------
INSERT INTO DynamicModifiers
(ModifierType, CollectionType, EffectType )
VALUES
('MODTYPE_SUNNY_HONGKONG_UA_TRADE_FROMOTHERS', 'COLLECTION_PLAYER_CITIES', 'EFFECT_ADJUST_TRADE_ROUTE_YIELD_FROM_OTHERS' ),
('MODTYPE_SUNNY_HONGKONG_UA_TRADE_GOLD', 'COLLECTION_OWNER', 'EFFECT_ADJUST_CITY_TRADE_ROUTE_YIELD_FOR_INTERNATIONAL' );
----------------------------------------------
-- Modifiers
-----------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, OwnerRequirementSetId, SubjectRequirementSetId, RunOnce, Permanent )
VALUES ('MODIFIER_SUNNY_HONGKONG_UA_TRADE_SCFROMOTHERS', 'MODTYPE_SUNNY_HONGKONG_UA_TRADE_FROMOTHERS', NULL, NULL, 0, 1 ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_CLFROMOTHERS', 'MODTYPE_SUNNY_HONGKONG_UA_TRADE_FROMOTHERS', NULL, NULL, 0, 1 ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_GOLD', 'MODTYPE_SUNNY_HONGKONG_UA_GOLD', NULL, NULL, 0, 1 );
-----------------------------------------------
-- ModifierArguments
-----------------------------------------------
INSERT INTO ModifierArguments
(ModifierId, Name, Value )
VALUES ('MODIFIER_SUNNY_HONGKONG_UA_TRADE_SCFROMOTHERS', 'Amount', 2 ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_SCFROMOTHERS', 'Domestic', 'FALSE' ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_SCFROMOTHERS', 'YieldType', 'YIELD_SCIENCE' ),
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_CLFROMOTHERS', 'Amount', 3 ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_CLFROMOTHERS', 'Domestic', 'FALSE' ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_CLFROMOTHERS', 'YieldType', 'YIELD_CULTURE' ),
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_GOLD', 'Amount', 4 ),
('MODIFIER_SUNNY_HONGKONG_UA_TRADE_GOLD', 'YieldType', 'YIELD_GOLD' );