I have been trying to add a combat modifier that only applies to barbarians. I created a requirement set for the combat modifier for minor civs which has worked successfully (shown below).
I tried something similar with the barbarians, but I keep getting a foreign key constraint error in line 2 in my SQL tester. When I try to run the game it crashes.
Is there an analogue for the PLAYER_IS_MINOR_CIV requirement for barbarians? I thought PLAYER_IS_BARB_REQUIREMENT was the analogue, but it does not seem to behave the same.
Code:
INSERT INTO RequirementSets ("RequirementSetId", "RequirementSetType") VALUES ('REQUIREMENT_PLAYER_IS_MINOR_CIV', 'REQUIREMENTSET_TEST_ALL');
INSERT INTO RequirementSetRequirements ("RequirementSetId", "RequirementId") VALUES ('REQUIREMENT_PLAYER_IS_MINOR_CIV', 'REQUIRES_PLAYER_IS_MINOR_CIV');
I tried something similar with the barbarians, but I keep getting a foreign key constraint error in line 2 in my SQL tester. When I try to run the game it crashes.
Code:
INSERT INTO RequirementSets ("RequirementSetId", "RequirementSetType") VALUES ('REQUIREMENT_PLAYER_IS_BARBARIAN_PLAYER', 'REQUIREMENTSET_TEST_ALL');
INSERT INTO RequirementSetRequirements ("RequirementSetId", "RequirementId") VALUES ('REQUIREMENT_PLAYER_IS_BARBARIAN_PLAYER', 'PLAYER_IS_BARB_REQUIREMENT');
Is there an analogue for the PLAYER_IS_MINOR_CIV requirement for barbarians? I thought PLAYER_IS_BARB_REQUIREMENT was the analogue, but it does not seem to behave the same.
Last edited: