WitcherDB
Witcher 3 console commands & item ID database

Magic Lamp

Their intuition proved sound. In the end Keira found the lamp she had sought, and our heroes could return to the surface. Their trek underground had made friends of them, so Keira asked Geralt to come by her hut, as she could use some companionship in her lonely backwoods exile.

Fixing a softlock

Enable the debug console, then look for a fact under Gates the quest checks — one the quest is actively waiting on. If that flag never got written, addfact it to the value shown and the gate clears.

Setting a Set these to advance fact only marks a step done — it won't run the step or skip the quest forward, and it can't fix a softlock caused by a scene that never played or an NPC that didn't spawn (reload an earlier save for those). Save before forcing any fact.

Quest facts (42)

Set these to advance

28 facts

Completion flags this step writes — they record a step as done but won't run it or skip the quest forward on their own.

Keira part1 dd start
keira_part1_dd_start

Also used by A Favor for a Friend, An Invitation from Keira Metz, The Battle of Kaer Morhen

Keira part1 dd stop
keira_part1_dd_stop

Also used by A Favor for a Friend, An Invitation from Keira Metz, For the Advancement of Learning +1 more

Family found
q103_family_found

Also used by Family Matters

Completed
q104_completed
>= 1

Also used by A Greedy God, Contract: Swamp Thing, Family Matters

Met keira
q104_met_keira
== 1, >= 1

Also used by Family Matters

Knows inscription
q104_knows_inscription

Add q104_knows_inscription

Saved husband
q104_saved_husband

Add q104_saved_husband

Brazzier puzzle wrong
q104_brazzier_puzzle_wrong
<= 1, <= 2, > 2

Add q104_brazzier_puzzle_wrong

Elven wizard
q104_elven_wizard
>= 1

Add q104_elven_wizard

Fact hit
q104_fact_hit
== 2, == 3, == 4

Add q104_fact_hit

Failed to hear
q104_failed_to_hear
>= 1, >= 2

Add q104_failed_to_hear

Failed to hear away
q104_failed_to_hear_away
>= 1, >= 2

Add q104_failed_to_hear_away

Found cart
q104_found_cart
== 1

In phase: Keira Introduction, Searching Keira Journal

Found pond
q104_found_pond
== 1

In phase: Keira Introduction, Searching Keira Journal

Found stone
q104_found_stone
== 1

In phase: Keira Introduction, Searching Keira Journal

Husband to witch
q104_husband_to_witch
== 1

Add q104_husband_to_witch

Husband told about witch
q104_husband_told_about_witch
== 1

Add q104_husband_told_about_witch

Keira follows
q104_keira_follows
== 1

In phase: Postmine

Keira oneliners start
q104_keira_oneliners_start
== 1

Add q104_keira_oneliners_start

Keira oneliners stop
q104_keira_oneliners_stop
== 1

Add q104_keira_oneliners_stop

Keira praises
q104_keira_praises
>= 1

Add q104_keira_praises

Keira unfollows
q104_keira_unfollows
== 1

Add q104_keira_unfollows

Leave with keira
q104_leave_with_keira
>= 1

Add q104_leave_with_keira

Talked to villager
q104_talked_to_villager
== 1, >= 1

Add q104_talked_to_villager

Unblock running
q104_unblock_running
>= 1

Add q104_unblock_running

Unblocked running
q104_unblocked_running
>= 1

Add q104_unblocked_running

Veteran seen
q104_veteran_seen
>= 1

Add q104_veteran_seen

Visited queue
q104_visited_queue
>= 1

Add q104_visited_queue

Gates the quest checks

14 facts
Ciri met witch
q101_ciri_met_witch
== 1, >= 1

Also used by The Nilfgaardian Connection

Agreed to visit keira
q104_agreed_to_visit_keira
>= 1

Also used by An Invitation from Keira Metz

Activate portal bath
q104_activate_portal_bath
>= 1

Gates: Keira Introduction

Activate skull
q104_activate_skull
>= 1

Gates: Keira Introduction

Avallach about witches
q104_avallach_about_witches
>= 1

Gates: Character Journal Entries

Eredin seen
q104_eredin_seen
>= 1

Gates: Character Journal Entries

Exit dispelled
q104_exit_dispelled
== 1

Gates: Postmine

Help with lamp
q104_help_with_lamp
== 1

Gates: Postmine

Keira goes to mine
q104_keira_goes_to_mine
== 1, >= 1

Gates: Character Journal Entries, Keira Introduction

Keira intro test
q104_keira_intro_test
== 1

Gates: Keira Introduction

Looped chat
q104_looped_chat
>= 4

Gates: Keira Introduction

Still follow gossip
q104_still_follow_gossip
== 1

Gates: Keira Introduction

To mine now
q104_to_mine_now
== 1

Gates: Keira Introduction

Villager can go
q104_villager_can_go
== 1

Gates: Searching Keira

Objectives

  1. 1.Search for a way to continue deeper underground.
  2. 2.Follow Keira.
  3. 3.Search the room using your Witcher Senses.
  4. 4.Light the braziers in the correct order.
  5. 5.Look for the lamp in the mage's laboratory using your Witcher Senses.
  6. 6.Take the tunnel back to the surface.
  7. 7.Find an exit leading to the surface.

Objectives a quest can show, in roughly the order they appear; some are optional or mutually exclusive branches.