Civ Modding Wiki

Search

Search IconIcon to open search

EFFECT_ATTACH_MODIFIER_IF_PROMOTION_CLASS_MATCHES

Last updated Aug 8, 2022 Edit Source

This is an Effect Type. Please refer to that page for more information on Effect Type

# Info

EFFECT_ATTACH_MODIFIER_IF_PROMOTION_CLASS_MATCHES

  • Class: UNITS
  • Parameters:
    • Amount Integer
    • ModifierId String
      • Attach a modifier of the specified ID to the units matching the specified UnitPromotionClassType

# Samples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
INSERT INTO Modifiers
	(
		ModifierId,
		ModifierType
	)
VALUES
	(
		"APPLY_RES_UNIT_COMBAT_DEBUFF",
		"MODIFIER_ALL_UNITS_APPLY_MODIFIER_IF_PROMOTION_CLASS_MATCHES"
	);

INSERT INTO ModifierArguments
	(
		ModifierId,
		Name,
		Value
	)
VALUES
	(
		"APPLY_RES_UNIT_COMBAT_DEBUFF",
		"Amount",
		"WC_RES_UNIT_COMBAT_DEBUFF"
	);
	
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
INSERT INTO Modifiers
	(
		ModifierId,
		ModifierType
	)
VALUES
	(
		"APPLY_RES_UNIT_COMBAT_BUFF",
		"MODIFIER_ALL_UNITS_APPLY_MODIFIER_IF_PROMOTION_CLASS_MATCHES"
	);

INSERT INTO ModifierArguments
	(
		ModifierId,
		Name,
		Value
	)
VALUES
	(
		"APPLY_RES_UNIT_COMBAT_BUFF",
		"ModifierId",
		"WC_RES_UNIT_COMBAT_BUFF"
	);
	

Interactive Graph