Mark Map All Explored
Category: Map/World (Map/World)
An event content that marks all passable cells of the specified map as explored in bulk. It is used for productions such as "obtaining a map item reveals the entire map", "learning map information from an NPC reveals the Minimap", "obtaining a world map through story progression", or "immediately revealing the map in tutorials or for debugging".
Bulk-ON the "exploration info" of the Minimap
This event content bulk-enables the explored cell information displayed on the Minimap. Normally, only cells that the player has actually walked are recorded as explored, but using this event content marks all cells, including those not yet visited, as explored.
Walls and unplaced cells are not marked as explored
Only passable cells are marked as explored. Walls (passable=1) and unplaced cells are excluded, resulting in the same appearance as "the state in which the player has actually walked around and fully explored".
Property List
| Item | Input Form | Description |
|---|---|---|
| Target (Target) | Choice | CurrentMap (current map) / MapKey (specified map) |
| Map Key (Map Key) | Choice | Only valid when Target=MapKey, selected from the keys in map.json |
Property Details
Target (Target)
Selects the method of specifying the map to be marked as explored.
| Value | Meaning |
|---|---|
| CurrentMap (current map) | Targets the map on which the player is currently present |
| MapKey (key specification) | Specifies an arbitrary map by map key |
When CurrentMap is selected, the Map Key field is disabled.
Map Key (Map Key)
When Target=MapKey, selects from maps registered in map.json. Choices can be selected from all maps and are displayed in a dropdown.
- Non-existent key / empty string → outputs a warning log and does nothing (silently skipped)
Runtime Behavior
Processing Flow
- Resolve target map:
- CurrentMap → obtains the tilemap path of the current map from the save data
- MapKey → obtains the path of
map_data[map_key].tilemap
- Temporary load of the map: Temporarily loads the scene (
.tscn) of the target map - Scan all cells: Scans the tile data of the 3 layers (Ground / Below / Above)
- Passability check:
- Any layer has tile data (placed)
- And all layers have passable=0 (passable)
- Excluded if any layer has passable=1 (wall)
- Overwrite exploration info: Creates
save_data.world.explored[tilemap_path]and registers passable cells in"x,y": trueformat - Release the map from memory: Immediately frees the temporarily loaded scene
- Minimap redraw: If the target is the current map, forcibly redraws the Minimap
- Proceed to the next event content
Overwriting existing exploration info
This event content completely overwrites the exploration info of the target map:
- Already-explored cells are also replaced with the new data
- Old records remaining on removed tiles (outside used_rect) are also cleaned up
- As a result, "the fully explored state for the latest map structure" is obtained
Map loading cost
This event content needs to temporarily load the scene of the target map.
- Processing time varies depending on map size and number of layers
- No memory leak as
queue_free()is called immediately after loading - For large maps, event progression may pause for a moment
Normally this is within an acceptable range during play, but be mindful of performance when "consecutively marking multiple maps as fully explored".
Immediate Minimap reflection on the current map
If the target is the current map (CurrentMap or MapKey matching the current map), the Minimap is immediately redrawn. Right after this event content is executed, the player can see the production of "the Minimap expanding all at once".
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 tilemap path of the target map is empty or the resource is missing
Typical Usage Flows
Flow 1: Effect of a map item
Using the "map" item reveals the entire current map:
- (Inside the item use event)
- Mark Map All Explored (this event content)
- Target: CurrentMap
- Play sound: page turning sound
- Show text: "Opened the map. The surrounding geography is now in my head!"
Flow 2: Learning map info from an NPC
Learning dungeon map info from the town elder:
- (NPC conversation event)
- Show text: "I remember the map of this dungeon..."
- Mark Map All Explored (this event content)
- Target: MapKey
- Map Key:
dungeon_01
- Show text: "Got taught the dungeon map!"
Flow 3: Obtaining a world map in the story
Obtaining a world map in a royal palace event:
- (Royal palace event)
- Show text: "This is the world map. I shall give it to you."
- Add Item (Add Item): World map item
- Mark Map All Explored (this event content)
- Target: MapKey
- Map Key:
world_map
- Show text: "Obtained the world map!"
Flow 4: Instant map reveal in tutorial
Reveal the entire map in the tutorial on first launch for operation check:
- Show text: "First, let's look at the map."
- Mark Map All Explored (this event content)
- Target: CurrentMap
- Show Minimap (Show Minimap)
- Show text: "You can see the entire map on the Minimap at the bottom right."
Flow 5: Bulk reveal for debugging
Bulk reveal all maps in a debug event:
- (Debug menu event)
- Mark Map All Explored (this event content): Map 1
- Target: MapKey
- Map Key:
dungeon_01
- Mark Map All Explored (this event content): Map 2
- Target: MapKey
- Map Key:
dungeon_02
- (Repeat for required number of maps)
- Show text: "Revealed all maps"
Typical Combinations
- Add Item (Add Item): Trigger the effect at the same time as obtaining the "map" item
- Remove Item (Remove Item): Consumption processing for a single-use map item
- Show Minimap (Show Minimap): Reveal exploration info and display the Minimap at the same time
- Play Sound (Play Sound): Sound of opening the map / information acquisition SE
- Show Text (Show Text): Explanation of "obtained the map"
- Assign Variable (Assign Variable): Set the "map obtained flag" to prevent duplicate acquisition
- If (If): Check "run full exploration mark only on first time"
Related Events
- Clear Map Explored (Clear Map Explored): Paired event content. Clears all exploration info
- Show Minimap (Show Minimap): Minimap UI to visualize exploration info
- Hide Minimap (Hide Minimap): Hides the Minimap
- Add Item (Add Item): Linked with map item acquisition
Related Pages
- Editor Minimap — basic settings for the Minimap
- Editor Map — map passability (passable) settings
- Clear Map Explored (Clear Map Explored) — paired event content
Notes / Constraints
Existing exploration info is overwritten
This event content completely overwrites the exploration info of the target map. The "exploration info recorded by the player actually walking" is also replaced with new full-exploration data, so existing exploration is not lost (always expanding).
Walls and unplaced cells are not marked as explored
Only passable cells are marked as explored. Walls (passable=1) and unplaced cells are excluded. This is to reproduce the same appearance as "the state in which the player has actually walked and fully explored", and the tool does not support "recording all cells including walls".
Loading cost on large maps
Since the scene of the target map is temporarily loaded, processing takes time proportional to size. It is instant on small town maps, but may wait several frames on huge dungeon maps. UI operations may freeze momentarily under operations such as "consecutively full-exploration-marking multiple maps".
Exploration info is updated even when Minimap is hidden
Even in the Hide Minimap (Hide Minimap) state, exploration info (save_data.world.explored) is updated. Calling Show Minimap (Show Minimap) afterwards will display with the full exploration state.
Minimap is not redrawn if target is not the current map
If this event content is executed on another map (specified via MapKey), the Minimap is not immediately redrawn. The fully explored state is first displayed only when the player moves to the relevant map.
Saved in save data
Exploration info (save_data.world.explored) is saved in save data, so the explored state is maintained even after save → load. The behavior "once you obtain the map, all cells become visible from then on" is realized naturally.
"Outside placed cells" remain unexplored
Areas without cell placement on the map (blank areas) will not be marked as explored even with this event content. On the Minimap, "unexplored cell chips" are displayed (they do not go pitch black, but take on the unexplored appearance).
