cyberhawk94
Chieftain
- Joined
- May 15, 2020
- Messages
- 9
Working on a rework mod for the Diplomatic Victory. One of the things I really want is to get 1 DVP when you achieve a tier 3 alliance. This would give some meaning to building strong alliances for diplomacy like they should (beyond the basic favor generation), and let the 3 alliance leaders get benefits toward that victory which is fun.
Below is my code, the text shows up on the alliance but you do not get the point, what am I missing? Modifier type is copied from Potala Palace, can you just not use a one time modifier on alliances for whatever reason? Should this be scripted in lua instead?
INSERT INTO Modifiers
(ModifierId, ModifierType, RunOnce, Permanent)
VALUES ('ALLIANCE_MILITARY_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_RELIGION_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_SCIENCE_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_CULTURE_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_ECON_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1');
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('ALLIANCE_MILITARY_DVP', 'Amount', 1),
('ALLIANCE_RELIGION_DVP', 'Amount', 1),
('ALLIANCE_SCIENCE_DVP', 'Amount', 1),
('ALLIANCE_CULTURE_DVP', 'Amount', 1),
('ALLIANCE_ECON_DVP', 'Amount', 1),
('ALLIANCE_MILITARY_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_RELIGION_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_SCIENCE_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_CULTURE_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_ECON_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS');
INSERT INTO ModifierStrings
(ModifierId, Context, 'Text')
VALUES ('ALLIANCE_MILITARY_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_RELIGION_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_SCIENCE_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_CULTURE_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_ECON_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP');
INSERT INTO AllianceEffects
(AllianceType, LevelRequirement, ModifierID)
VALUES ('ALLIANCE_MILITARY', 3, 'ALLIANCE_MILITARY_DVP'),
('ALLIANCE_RELIGIOUS', 3, 'ALLIANCE_RELIGION_DVP'),
('ALLIANCE_RESEARCH', 3, 'ALLIANCE_SCIENCE_DVP'),
('ALLIANCE_CULTURAL', 3, 'ALLIANCE_CULTURE_DVP'),
('ALLIANCE_ECONOMIC', 3, 'ALLIANCE_ECON_DVP');
Below is my code, the text shows up on the alliance but you do not get the point, what am I missing? Modifier type is copied from Potala Palace, can you just not use a one time modifier on alliances for whatever reason? Should this be scripted in lua instead?
INSERT INTO Modifiers
(ModifierId, ModifierType, RunOnce, Permanent)
VALUES ('ALLIANCE_MILITARY_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_RELIGION_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_SCIENCE_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_CULTURE_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1'),
('ALLIANCE_ECON_DVP', 'MODIFIER_PLAYER_ADJUST_DIPLOMATIC_VICTORY_POINTS', '1', '1');
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('ALLIANCE_MILITARY_DVP', 'Amount', 1),
('ALLIANCE_RELIGION_DVP', 'Amount', 1),
('ALLIANCE_SCIENCE_DVP', 'Amount', 1),
('ALLIANCE_CULTURE_DVP', 'Amount', 1),
('ALLIANCE_ECON_DVP', 'Amount', 1),
('ALLIANCE_MILITARY_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_RELIGION_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_SCIENCE_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_CULTURE_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS'),
('ALLIANCE_ECON_DVP', 'Tooltip', 'LOC_CYB_TOOLTIP_POLITICS');
INSERT INTO ModifierStrings
(ModifierId, Context, 'Text')
VALUES ('ALLIANCE_MILITARY_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_RELIGION_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_SCIENCE_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_CULTURE_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP'),
('ALLIANCE_ECON_DVP', 'Summary', 'LOC_CYB_ALLIANCE_DVP');
INSERT INTO AllianceEffects
(AllianceType, LevelRequirement, ModifierID)
VALUES ('ALLIANCE_MILITARY', 3, 'ALLIANCE_MILITARY_DVP'),
('ALLIANCE_RELIGIOUS', 3, 'ALLIANCE_RELIGION_DVP'),
('ALLIANCE_RESEARCH', 3, 'ALLIANCE_SCIENCE_DVP'),
('ALLIANCE_CULTURAL', 3, 'ALLIANCE_CULTURE_DVP'),
('ALLIANCE_ECONOMIC', 3, 'ALLIANCE_ECON_DVP');