[SOLVED] Barbarian Combat Adjustment

y10

Chieftain
Joined
Oct 20, 2020
Messages
76
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).

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:
PLAYER_IS_BARB_REQUIREMENT is part of the Zombie game mode thing, and does not appear to be active when the game mode is not in use. You can create your own version of it in table Requirements for more generic use
Code:
RequirementId ----------- PLAYER_IS_BARBIE_SOMETHING
        ie, whatever unique requirement ID name you wish to use so that it will not
        step over and interfere with the one used in the Zombie game mode
RequirementType -------- REQUIREMENT_PLAYER_IS_BARBARIAN
       The data for the RequirementType specification MUST be that shown
 
Back
Top Bottom