DeepSoul
Warlord
- Joined
- Dec 30, 2011
- Messages
- 174
I wanted to add bonuses to a civ from sending delegations or embassies, and used Chat GPT to create this code(I know it's not very good at it):
-- +5 Faith per delegation (one-time)
INSERT INTO Modifiers (ModifierId, ModifierType)
VALUES ('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'MODIFIER_PLAYER_ADJUST_YIELD_FROM_DELEGATIONS');
INSERT INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'YieldType', 'YIELD_FAITH'),
('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'Amount', 5);
-- +10 Culture per embassy (one-time)
INSERT INTO Modifiers (ModifierId, ModifierType)
VALUES ('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'MODIFIER_PLAYER_ADJUST_YIELD_FROM_EMBASSIES');
INSERT INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'YieldType', 'YIELD_CULTURE'),
('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'Amount', 10);
The modifiers are added to the leader ability in another section, but it doesn't have any effect. I've tried other modded civs that are supposed to have a similar bonus but it doesn't work there either, at least not for delegations. Testing embassies would take some time. So I'm wondering, is it even possible without LUA and what's the correct method?
-- +5 Faith per delegation (one-time)
INSERT INTO Modifiers (ModifierId, ModifierType)
VALUES ('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'MODIFIER_PLAYER_ADJUST_YIELD_FROM_DELEGATIONS');
INSERT INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'YieldType', 'YIELD_FAITH'),
('SACAGAWEA_FAITH_FROM_DELEGATIONS', 'Amount', 5);
-- +10 Culture per embassy (one-time)
INSERT INTO Modifiers (ModifierId, ModifierType)
VALUES ('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'MODIFIER_PLAYER_ADJUST_YIELD_FROM_EMBASSIES');
INSERT INTO ModifierArguments (ModifierId, Name, Value)
VALUES ('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'YieldType', 'YIELD_CULTURE'),
('SACAGAWEA_CULTURE_FROM_EMBASSIES', 'Amount', 10);
The modifiers are added to the leader ability in another section, but it doesn't have any effect. I've tried other modded civs that are supposed to have a similar bonus but it doesn't work there either, at least not for delegations. Testing embassies would take some time. So I'm wondering, is it even possible without LUA and what's the correct method?