Skip to content

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 ​

ItemInput FormDescription
Target (Target)ChoiceCurrentMap (current map) / MapKey (specified map)
Map Key (Map Key)ChoiceOnly 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.

ValueMeaning
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 ​

  1. 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
  2. Temporary load of the map: Temporarily loads the scene (.tscn) of the target map
  3. Scan all cells: Scans the tile data of the 3 layers (Ground / Below / Above)
  4. Passability check:
    • Any layer has tile data (placed)
    • And all layers have passable=0 (passable)
    • Excluded if any layer has passable=1 (wall)
  5. Overwrite exploration info: Creates save_data.world.explored[tilemap_path] and registers passable cells in "x,y": true format
  6. Release the map from memory: Immediately frees the temporarily loaded scene
  7. Minimap redraw: If the target is the current map, forcibly redraws the Minimap
  8. 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_key is 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:

  1. (Inside the item use event)
  2. Mark Map All Explored (this event content)
    • Target: CurrentMap
  3. Play sound: page turning sound
  4. 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:

  1. (NPC conversation event)
  2. Show text: "I remember the map of this dungeon..."
  3. Mark Map All Explored (this event content)
    • Target: MapKey
    • Map Key: dungeon_01
  4. 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:

  1. (Royal palace event)
  2. Show text: "This is the world map. I shall give it to you."
  3. Add Item (Add Item): World map item
  4. Mark Map All Explored (this event content)
    • Target: MapKey
    • Map Key: world_map
  5. 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:

  1. Show text: "First, let's look at the map."
  2. Mark Map All Explored (this event content)
    • Target: CurrentMap
  3. Show Minimap (Show Minimap)
  4. 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:

  1. (Debug menu event)
  2. Mark Map All Explored (this event content): Map 1
    • Target: MapKey
    • Map Key: dungeon_01
  3. Mark Map All Explored (this event content): Map 2
    • Target: MapKey
    • Map Key: dungeon_02
  4. (Repeat for required number of maps)
  5. 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"
  • 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

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).