I recently began work on making my own little Civilization for fun with no previous experience, and I have thus far been able to navigate through the whole modding process until now.
For the civilization I am making, I wanted to have the leader's ability to mimic that of the Cossack's ability, which is that the unit gets a combat bonus for being adjacent or inside your own territory. I had been holding off making this post as a last resort, and because of that, I have made many, many attempts at trying to figure out how to get this ability to work.
Here is my latest unsuccessful rendition:
This attempt was done through looking at the Cossack's unit ability and trying to apply it to the civilization by looking at how the Roosevelt Corollary applied the Home Continent bonus to all of its units.
I also tried to do the whole requirements thing by using...
..., but to no avail. So I was wondering if anyone here could set me straight on my little project here. Any help will be greatly appreciated.
For the civilization I am making, I wanted to have the leader's ability to mimic that of the Cossack's ability, which is that the unit gets a combat bonus for being adjacent or inside your own territory. I had been holding off making this post as a last resort, and because of that, I have made many, many attempts at trying to figure out how to get this ability to work.
Here is my latest unsuccessful rendition:
Code:
--==========================================================================================================================
-- LEADERS: TRAITS
--==========================================================================================================================
-- Types
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Types
(Type, Kind)
VALUES ('TRAIT_LEADER_NZO_DAVIS_CAUSE', 'KIND_TRAIT');
--------------------------------------------------------------------------------------------------------------------------
-- Traits
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Traits
(TraitType, Name, Description)
VALUES ('TRAIT_LEADER_NZO_DAVIS_CAUSE', 'LOC_TRAIT_LEADER_NZO_DAVIS_CAUSE_NAME', 'LOC_TRAIT_LEADER_NZO_DAVIS_CAUSE_DESCRIPTION');
--------------------------------------------------------------------------------------------------------------------------
-- TraitModifiers
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO TraitModifiers
(TraitType, ModifierId)
VALUES ('TRAIT_LEADER_NZO_DAVIS_CAUSE', 'TRAIT_OWN_LAND_COMBAT_BONUS');
--------------------------------------------------------------------------------------------------------------------------
-- Modifiers
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, RunOnce, Permanent, SubjectRequirementSetId)
VALUES ('TRAIT_OWN_LAND_COMBAT_BONUS', 'MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH', '0', '0', 'COSSACK_PLOT_IS_OWNER_OR_ADJACENT_REQUIREMENTS');
--------------------------------------------------------------------------------------------------------------------------
-- ModifierArguments
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('TRAIT_OWN_LAND_COMBAT_BONUS', 'Amount', '5'),
('TRAIT_OWN_LAND_COMBAT_BONUS', 'ModifierId', 'COSSACK_LOCAL_COMBAT');
I also tried to do the whole requirements thing by using...
REQUIREMENT_UNIT_ADJACENT_TO_OWNER_TERRITORY
REQUIREMENT_UNIT_IN_OWNER_TERRITORY
REQUIREMENT_UNIT_IN_OWNER_TERRITORY
..., but to no avail. So I was wondering if anyone here could set me straight on my little project here. Any help will be greatly appreciated.