Civ Modding Wiki

Search

Search IconIcon to open search

EFFECT_ADJUST_UNIT_VALID_TERRAIN

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_ADJUST_UNIT_VALID_TERRAIN

  • Class: UNITS
  • Parameters:
    • TerrainType String
      • [Terrains.TerrainType]
    • Valid Boolean
      • Whether or not the terrain type is valid to move into.

# 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
25
26
27
28
29
30
31
INSERT INTO Modifiers
	(
		ModifierId,
		ModifierType,
		SubjectRequirementSetId
	)
VALUES
	(
		"TRAIT_EARLY_OCEAN_NAVIGATION",
		"MODIFIER_PLAYER_UNITS_ADJUST_VALID_TERRAIN",
		"PLAYER_HAS_SHIPBUILDING_TECH"
	);

INSERT INTO ModifierArguments
	(
		ModifierId,
		Name,
		Value
	)
VALUES
	(
		"TRAIT_EARLY_OCEAN_NAVIGATION",
		"TerrainType",
		"TERRAIN_OCEAN"
	),
	(
		"TRAIT_EARLY_OCEAN_NAVIGATION",
		"Valid",
		1
	);
	

Interactive Graph