Hitler mod and Emergency

daatdaa

Chieftain
Joined
Apr 23, 2022
Messages
1
https://steamcommunity.com/workshop/filedetails/?id=1306876592

This is JFD'S Hitler mod. It's a very well-made mode, so apart from the error below, I recommend you try it.

The leader trait 'Blitzkreig' provides 15% production bonuses on military units and +1 bonus MP during the war with major civilizations. It doubles when player become an emergency target.

However, the doubling of bonuses during the emergencies now doesn't work. Only existing war bonuses apply.

Code:
--==========================================================================================================================
-- LEADERS: TRAITS
--==========================================================================================================================
-- Types
--------------------------------------------------------------------------------------------------------------------------   
INSERT INTO Types   
        (Type,                                    Kind)
VALUES    ('TRAIT_LEADER_JFD_BLITZKRIEG',            'KIND_TRAIT');   
--------------------------------------------------------------------------------------------------------------------------           
-- Traits           
--------------------------------------------------------------------------------------------------------------------------               
INSERT INTO Traits               
        (TraitType,                                Name,                                            Description)
VALUES    ('TRAIT_LEADER_JFD_BLITZKRIEG',            'LOC_TRAIT_LEADER_JFD_BLITZKRIEG_NAME',            'LOC_TRAIT_LEADER_JFD_BLITZKRIEG_DESCRIPTION');   
--------------------------------------------------------------------------------------------------------------------------       
-- TraitModifiers       
--------------------------------------------------------------------------------------------------------------------------           
INSERT INTO TraitModifiers           
        (TraitType,                                ModifierId)
VALUES    ('TRAIT_LEADER_JFD_BLITZKRIEG',            'TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION'),
        ('TRAIT_LEADER_JFD_BLITZKRIEG',            'TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION_EMERGENCY'),
        ('TRAIT_LEADER_JFD_BLITZKRIEG',            'TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES'),
        ('TRAIT_LEADER_JFD_BLITZKRIEG',            'TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES_EMERGENCY');                           
--------------------------------------------------------------------------------------------------------------------------
-- Modifiers
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Modifiers   
        (ModifierId,                                        ModifierType,                                                SubjectRequirementSetId)
VALUES    ('TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION',                'MODIFIER_PLAYER_CITIES_ADJUST_MILITARY_UNITS_PRODUCTION',    'JFD_BLITZKRIEG_AT_WAR_REQ_SET'),
        ('TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION_EMERGENCY',    'MODIFIER_PLAYER_CITIES_ADJUST_MILITARY_UNITS_PRODUCTION',    'JFD_BLITZKRIEG_AT_WAR_EMERGENCY_REQ_SET'),
        ('TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES',                'MODIFIER_PLAYER_UNITS_ADJUST_MOVEMENT',                    'JFD_BLITZKRIEG_AT_WAR_REQ_SET'),
        ('TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES_EMERGENCY',    'MODIFIER_PLAYER_UNITS_ADJUST_MOVEMENT',                    'JFD_BLITZKRIEG_AT_WAR_EMERGENCY_REQ_SET');
--------------------------------------------------------------------------------------------------------------------------
-- ModifierArguments
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO ModifierArguments
        (ModifierId,                                        Name,            Value)
VALUES    ('TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION',                'Amount',        15),
        ('TRAIT_JFD_BLITZKRIEG_WAR_PRODUCTION_EMERGENCY',    'Amount',        30),
        ('TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES',                'Amount',        1),
        ('TRAIT_JFD_BLITZKRIEG_WAR_UNIT_MOVES_EMERGENCY',    'Amount',        2);
----------------------------------------------------------------------------------------------------------------------------
-- Requirements
----------------------------------------------------------------------------------------------------------------------------
INSERT INTO Requirements
        (RequirementId,                                     RequirementType,                                        Inverse)
VALUES    ('JFD_BLITZKRIEG_AT_WAR_REQ',                        'REQUIREMENT_PLAYER_IS_AT_PEACE_WITH_ALL_MAJORS',        1);
----------------------------------------------------------------------------------------------------------------------------
-- RequirementSets
----------------------------------------------------------------------------------------------------------------------------
INSERT INTO RequirementSets
        (RequirementSetId,                                    RequirementSetType)
VALUES    ('JFD_BLITZKRIEG_AT_WAR_REQ_SET',                    'REQUIREMENTSET_TEST_ALL'),
        ('JFD_BLITZKRIEG_AT_WAR_EMERGENCY_REQ_SET',            'REQUIREMENTSET_TEST_ALL');
----------------------------------------------------------------------------------------------------------------------------   
-- RequirementSetRequirements   
----------------------------------------------------------------------------------------------------------------------------   
INSERT INTO RequirementSetRequirements   
        (RequirementSetId,                                    RequirementId)
VALUES    ('JFD_BLITZKRIEG_AT_WAR_REQ_SET',                    'JFD_BLITZKRIEG_AT_WAR_REQ'),
        ('JFD_BLITZKRIEG_AT_WAR_EMERGENCY_REQ_SET',            'JFD_BLITZKRIEG_AT_WAR_REQ'),
        ('JFD_BLITZKRIEG_AT_WAR_EMERGENCY_REQ_SET',            'REQUIRES_PLAYER_IS_EMERGENCY_TARGET');

I've tried to fix it, but I've hit the limit because I'm an outsider in coding. Adjusting the modifier argument value also didn't work.

I'm not sure where the problem is in the code script above. I'd be very grateful if someone could help me.
 

Attachments

  • GermanyHitler_GameDefines.zip
    3.1 KB · Views: 17
Top Bottom