Skip to content

Reset 3D Dungeon Regions ​

Category: Map/World

Event content that clears all per-region override settings set up in a 3D dungeon in a batch. Used for scenarios such as "clean up the previous dungeon's per-region settings before moving to another dungeon", "world returns to initial state as story progresses", or "recovery when settings become inconsistent".

Simple event content with no properties

This event content has no properties. Simply adding it erases all per-region override settings.

Only "per-region overrides" are cleared

This event content clears only the differences saved via Set 3D Dungeon Config with region=1 or higher. Overall settings (region=0) and editor JSON defaults remain.

Property List ​

No properties at all. Per-region overrides are cleared the moment this event content is added.

Runtime Behavior ​

Processing Flow ​

  1. Clear per-region overrides: save_data.world.dungeon_3d_region_config = {} (empty dict)
  2. Rebuild 3D space: If 3D mode is being displayed, rebuild() reconstructs walls and floors per region (background also reapplied)
  3. Proceeds to next event content

What is cleared / what remains ​

ItemContentTreatment by this event content
Per-region overrides (dungeon_3d_region_config)Differences saved with region>=1 in Set 3D Dungeon ConfigFully erased
Overall settings (dungeon_3d_config)Settings saved with region=0 in Set 3D Dungeon ConfigRemain
JSON defaults (dungeon_3d_settings_data)Default values set in Editor 3D Mode SettingsRemain

As a result, cells that had region=1 or higher set will be rendered with the region=0 (overall default) settings.

Only full reset supported ​

This event content batch-resets all regions. It does not support individual reset such as "I want to reset only region=2" (not implemented due to low demand). To restore only a specific region, re-set the original values for that region with Set 3D Dungeon Config.

No error even if already empty ​

Calling this event content with per-region overrides already empty completes without issue (nothing changes, proceeds to next event).

Saving to save data ​

The initialization of dungeon_3d_region_config is saved to save data, and the empty state is maintained even after save -> load.

Typical Usage Flows ​

Flow 1: Cleanup before moving to another dungeon ​

Don't carry per-region overrides set in the previous dungeon to the new dungeon:

  1. (Transition event from Dungeon A to B)
  2. Reset 3D Dungeon Regions (this event content)
  3. Change Map: To Dungeon B
  4. Set 3D Dungeon Config: Overall settings for the new dungeon
  5. (Reset per-region settings as needed)

Flow 2: World change as story progresses ​

Staging where the world returns to its initial state:

  1. (World change event)
  2. Fade Out Screen
  3. Reset 3D Dungeon Regions (this event content)
  4. Set 3D Dungeon Config: Return overall settings to a simpler state
  5. Fade In Screen
  6. Show Text: "The world has returned to its primordial form..."

Flow 3: Settings recovery (for debug) ​

Batch recovery when "3D appearance has become inconsistent":

  1. (Debug event)
  2. Reset 3D Dungeon Regions (this event content)
  3. Show Text: "Per-region settings have been reset"

Flow 4: Chapter switching ​

Clean up the previous chapter's region settings at the timing of game chapter switches:

  1. (Chapter switch event)
  2. Reset 3D Dungeon Regions (this event content)
  3. Assign Variable: Update chapter number
  4. Change Map: To the initial map of the next chapter

Typical Combinations ​

  • Set 3D Dungeon Config: Reconstruct overall settings after reset
  • Change Map: Cleanup before moving to another dungeon
  • Set 3D Dungeon Enabled: Combined with switching 3D mode itself
  • Fade Out / Fade In: Darken the screen for a natural reset
  • Show Text: Represent the world change after reset
  • Assign Variable: Manage chapter/dungeon switch flags
  • Set 3D Dungeon Config: Paired event content. Creates and modifies per-region settings
  • Set 3D Dungeon Enabled: ON/OFF of 3D mode itself
  • Change Map: Combined use for cleanup when switching maps

Notes and Constraints ​

Overall settings (region=0) are not reset ​

This event content only clears per-region overrides (region>=1). Overall settings changed via Set 3D Dungeon Config (region=0) remain intact. If you also want to "reset overall settings to initial values", explicitly specify initial values with Set 3D Dungeon Config to overwrite them.

Full reset only, individual region reset is not possible ​

Individual resets such as "I want to reset only region=2" are not supported. This event content batch-clears all regions. If you want to restore only a specific region, re-apply its original settings with Set 3D Dungeon Config.

Does not affect JSON defaults ​

JSON defaults set in Editor 3D Mode Settings are not changed by this event content. These are designed to be maintained as the base values for the whole game (editing of the dungeon_3d_settings.json file is done on the editor screen).

Immediate reflection during 3D mode display ​

When this event content is called while 3D mode is being displayed, rebuild() runs and the appearance is updated immediately (sections that looked different per region revert to the same look as region=0).

Not subject to batch processing even when placed consecutively with Change Map ​

Set 3D Dungeon Enabled or Set 3D Dungeon Config placed consecutively with Change Map are atomically batched, but this event content is not subject to batch processing. Since it is executed independently, if you want to combine it with Change Map's fade, manually insert Fade Out Screen / Fade In Screen.

Saved to save data ​

The reset result is saved to save data, so per-region overrides remain empty after save -> load. The per-region appearance will not reappear after loading.