Home › Enums › HeroDiscoverySources

Available out of the box. Usable from Lua in the unmodified game.

HeroDiscoverySources

Lua constant table HeroDiscoverySources. Engine enum: GameCore::HeroDiscoverySources.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

8 of 8 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
NO_DISCOVERY_SOURCE NO_DISCOVERY_SOURCE 0
DISCOVERY_SOURCE_PROJECT DISCOVERY_SOURCE_PROJECT 1
DISCOVERY_SOURCE_GOODY_HUT DISCOVERY_SOURCE_GOODY_HUT 2
DISCOVERY_SOURCE_CITY_STATE_INFLUENCE DISCOVERY_SOURCE_CITY_STATE_INFLUENCE 3
DISCOVERY_SOURCE_CITY_STATE_SUZERAIN DISCOVERY_SOURCE_CITY_STATE_SUZERAIN 4
DISCOVERY_SOURCE_NEW_CONTINENT DISCOVERY_SOURCE_NEW_CONTINENT 5
DISCOVERY_SOURCE_NATURAL_WONDER DISCOVERY_SOURCE_NATURAL_WONDER 6
DISCOVERY_SOURCE_ENCOUNTER DISCOVERY_SOURCE_ENCOUNTER 7