isau
Deity
- Joined
- Jan 15, 2007
- Messages
- 3,071
I've been stuck on this one a while. The ability I want modded Germany to have is this:
Problem: can't figure out how to ID a city state. Because of this the current implementation in my mod just gives the award to any city capture:
Fix attempts have included:
Here's existing code below. Ideally there would be a Requirement of some kind I could plug into a RequirementSet and apply to QUO_GERMANY_CITY_CAPTURE_PLAYER to limit which cities this triggers on, but I can't figure out a way to do it.
Is it possible? I really dont want to resort to Lua for this (mainly because I hate Lua
).
- Receive x15 your current Gold per turn as an immediate payout when you conquer a City State
Problem: can't figure out how to ID a city state. Because of this the current implementation in my mod just gives the award to any city capture:
Fix attempts have included:
- Checking for a Palace doesn't work--seems it's deleted prior to the check
- Trying to add a new building with code that only City States have to use as a flag also doesn't work, because the building is removed when the city is conquered due to conqueror not having correct traits.
Here's existing code below. Ideally there would be a Requirement of some kind I could plug into a RequirementSet and apply to QUO_GERMANY_CITY_CAPTURE_PLAYER to limit which cities this triggers on, but I can't figure out a way to do it.
Code:
INSERT INTO Modifiers
(ModifierId, ModifierType, RunOnce, Permanent, OwnerRequirementSetId, SubjectRequirementSetId)
VALUES ('QUO_GERMANY_CITY_CAPTURE', 'MODIFIER_PLAYER_GRANT_YIELD_BASED_ON_CURRENT_YIELD_RATE', 1, 1, NULL, NULL) ,
('QUO_GERMANY_CITY_CAPTURE_PLAYER', 'MODIFIER_PLAYER_CAPTURED_CITY_ATTACH_MODIFIER', 0, 0, NULL, NULL) ;
INSERT INTO ModifierArguments
(ModifierId, Name, Type, Value, Extra, SecondExtra)
VALUES ('QUO_GERMANY_CITY_CAPTURE', 'Multiplier', 'ARGTYPE_IDENTITY', '5', NULL, NULL) ,
('QUO_GERMANY_CITY_CAPTURE', 'YieldToBaseOn', 'ARGTYPE_IDENTITY', 'YIELD_GOLD', NULL, NULL) ,
('QUO_GERMANY_CITY_CAPTURE', 'YieldToGrant', 'ARGTYPE_IDENTITY', 'YIELD_GOLD', NULL, NULL) ,
('QUO_GERMANY_CITY_CAPTURE_PLAYER', 'ModifierId', 'ARGTYPE_IDENTITY', 'QUO_GERMANY_CITY_CAPTURE', NULL, NULL) ;
INSERT INTO TraitModifiers
(TraitType, ModifierID)
VALUES ('TRAIT_LEADER_HOLY_ROMAN_EMPEROR', 'QUO_GERMANY_CITY_CAPTURE_PLAYER') ;
Is it possible? I really dont want to resort to Lua for this (mainly because I hate Lua
