Clear Map Explored
Category: Map/World
An event content that erases all exploration records of the specified map at once. It is used for effects such as "reset the previous playthrough's exploration info in New Game+", "memory-loss staging via a fog spell", "map info disappears from a thief's curse", or "debug exploration reset".
Toggle "exploration info" of the minimap OFF at once
This event content erases explored cell information displayed on the minimap at once. All cells that were explored return to the "unexplored" state and look like unexplored again on the minimap. The player will need to walk around again to re-explore.
Paired event content: Mark Map All Explored
This event content is the counterpart to Mark Map All Explored, which toggles exploration info ON at once. By combining the two, you can flexibly manipulate exploration info according to game progress.
Property list
| Item | Input format | Description |
|---|---|---|
| Target | Select | CurrentMap (current map) / MapKey (specified map) |
| Map Key | Select | Only valid when Target=MapKey; select from map.json keys |
Property details
Target
Choose how to specify the map whose exploration record is to be cleared.
| Value | Meaning |
|---|---|
| CurrentMap | Target the map the player is currently on |
| MapKey | Specify an arbitrary map by map key |
Choosing CurrentMap disables the Map Key field.
Map Key
When Target=MapKey, select from maps registered in map.json. All maps are displayed in the dropdown.
- Nonexistent key / empty string → output warning log and do nothing (silently skip)
Runtime behavior
Processing flow
- Resolve the target map:
- CurrentMap → Get the tilemap path of the current map from save data
- MapKey → Get the path of
map_data[map_key].tilemap
- Erase all exploration records: Initialize
save_data.world.explored[tilemap_path] = {} - Minimap redraw: Force redraw the minimap if the target is the current map
- Proceed to the next event content
Complete erasure behavior
This event content completely erases the exploration info of the target map:
- All cells return to the unexplored state
- Old records outside
used_rectdue to map updates are also cleaned up (extraneous residual data is removed) - All records of where the player actually walked are also lost
Lightweight processing
Unlike Mark Map All Explored, this event content does not load the map scene. Since it simply empties a dictionary, processing completes instantly even for large maps (no performance impact).
Immediate reflection on minimap for current map
When the target is the current map (CurrentMap or MapKey matching the current map), the minimap is redrawn instantly. The player sees the staging of "the minimap returns to unexplored state in an instant" (atmosphere of map info disappearing).
Fallback when no target
In the following cases, a warning log is output and processing proceeds to the next event content without doing anything:
- MapKey is specified but
map_keyis empty - The key specified by MapKey does not exist in
map_data - The target map's tilemap path is empty or the resource is missing
Typical usage flows
Flow 1: Reset exploration info in New Game+
Initialize exploration info at the start of the 2nd playthrough:
- (New Game+ start event)
- Clear Map Explored (this event content): Map 1
- Target: MapKey
- Map Key:
dungeon_01
- Clear Map Explored (this event content): Map 2
- Target: MapKey
- Map Key:
dungeon_02
- (Repeat for all maps)
- Show Text: "A new adventure begins..."
Flow 2: Memory-loss staging via fog spell
Lose map info by being hit with a spell:
- Play sound effect: Spell activation sound
- Fade Out Screen
- Clear Map Explored (this event content)
- Target: CurrentMap
- Fade In Screen
- Show Text: "Hit by the fog spell! Map info is gone..."
Flow 3: Thief curse event
Staging of a thief tearing the hero's map:
- (Conversation with thief)
- Show Text: "Thief: 'I'll take your map!'"
- Play sound effect: Sound of tearing paper
- Clear Map Explored (this event content)
- Target: CurrentMap
- Show Text: "The map was stolen!"
Flow 4: Batch reset of all maps
Staging of the world changing with story progression:
- (World change event)
- Clear Map Explored (this event content): Repeat for all maps
- Show Text: "The world has become new..."
- (New adventure begins in the new world)
Flow 5: Debug reset
Initialize and test exploration info in a debug event:
- (Debug menu event)
- Clear Map Explored (this event content)
- Target: CurrentMap
- Show Minimap: Force redisplay to confirm the clear
- Show Text: "Exploration info has been cleared"
Typical combinations
- Mark Map All Explored: Paired event content. Fully open exploration info
- Show Minimap: Redisplay the minimap right after clear for staging
- Play Sound: Sound effect at the moment of info erasure
- Fade Out / Fade In: Emphasize the moment of erasure with screen staging
- Show Text: Explanation of "map info is gone"
- Assign Variable: Manage the "exploration info cleared" flag
- If: Clear check according to story progression
Related events
- Mark Map All Explored: Paired event content
- Show Minimap: UI to visualize exploration info
- Hide Minimap: Hide the minimap itself
- Reset Game: Initialize the entire game (including exploration info)
Related pages
- Mark Map All Explored — Paired event content
- Editor: Minimap — Basic settings of the minimap
Notes and constraints
Only exploration info is cleared
What this event content clears is only the exploration record of save_data.world.explored[tilemap_path]. The following are not affected:
- Object placement on the map
- Player position and facing
- Items and party state
- Minimap display settings (position, size, view cell count)
- Map data itself (
map.json)
Only "which cells have been walked" is purely reset.
No function to clear all maps at once
This event content clears the exploration info of 1 map per call. If you want to "clear all maps at once", you need to place this event content consecutively for the number of maps (there is no loop function).
No map load is needed (lightweight)
This event content only empties a dictionary; loading the map scene is not needed. Processing completes instantly even on large maps, and there is almost no performance impact even on consecutive execution.
No error even if already cleared
Calling with the exploration record already empty does not cause an error. It proceeds to the next event content without any change.
Minimap is not redrawn if target is not the current map
When executed for another map (another map specified by MapKey), the minimap is not redrawn instantly. The clear state is displayed for the first time when moving to that map.
Saved to save data
The clear result (save_data.world.explored) is saved to save data, so the clear state is maintained even after save → load. It can be used for permanent effects such as "erase exploration info in New Game+".
Revives when walked again
After clearing with this event content, when the player walks the map again, exploration info is recorded normally as usual. It is not a feature to "make the map permanently unexplorable" but a feature to "reset once and let the player explore from scratch".
