Skip to content

Set 3D Dungeon Config ​

Category: Map/World

An Event Content that dynamically changes the appearance, sounds, and view distance of 3D Dungeon Mode. Create diverse atmospheres on the same 3D dungeon system, such as "changing wall textures per dungeon level", "making only the boss room's ceiling red", "narrowing the view distance deep underground for tension", or "changing footsteps per area".

Empty = keep as-is

If you leave texture or sound paths blank, they are treated as "no change". If you only want to change the wall texture, leave the other items blank. The existing settings (JSON defaults or those set by previous Event Contents) are used as they are.

Region feature enables partial settings

Specifying region as 0 (default) applies to the overall settings, and specifying 1 or more applies to per-region individual settings. By tagging floor tiles with region attributes per section of the map, you can achieve different appearances per location within the same map.

Use in combination with Set 3D Dungeon Enabled

This Event Content alone does not enable 3D mode. The basic usage is to turn on 3D mode via Set 3D Dungeon Enabled, then adjust the appearance with this Event Content.

Property List ​

ItemInput formatDescription
RegionSpinBox0=overall, 1 or more=per-region individual setting
Ceiling TextureText + file selectionImage path used for the ceiling
Floor TextureText + file selectionImage path used for the floor
Wall TextureText + file selectionImage path used for the walls
View DistanceSpinBoxView cell count (default 5)
Ceiling EnabledCheckboxToggle ceiling display ON/OFF
Background EnabledCheckboxUse background image ON / solid color OFF
Background ImageText + file selectionImage path used for the background
Background Color RSpinBox0-255, valid only when Background Enabled=false
Background Color GSpinBox0-255
Background Color BSpinBox0-255
Move SoundText + file selectionSound effect played when PC moves forward
Rotate SoundText + file selectionSound effect played when PC rotates

Property Details ​

Region ​

Specify the target region number. By assigning region attributes to map cells, you can switch between different 3D settings per location within the same map.

  • 0 (default): Overall default settings (merged into dungeon_3d_config)
  • 1 or more: Per-region override settings (merged into dungeon_3d_region_config[region])

region=0 is the base setting shared by all cells, and region=1 or higher is an individual setting to "switch to a different appearance when entering this cell".

Ceiling / Floor / Wall Texture ​

Image paths pasted on the ceiling, floor, and walls of 3D space.

  • File selection button: Select from images under addons/rpg_wizard/data/sprites/
  • Supported formats: .png, .jpg, .jpeg, .webp
  • Blank: Keep as-is (do not change existing setting)

Set textures matching the dungeon's atmosphere, such as stonework, wood, metal, or lava.

View Distance ​

Specify the number of cells visible ahead from the camera.

  • Unit: cell count (e.g., 5 means displayed up to 5 cells ahead)
  • The larger it is, the further you can see, but drawing load increases
  • The smaller it is, the more enclosed the atmosphere feels, as if fogged
  • Default: 5

far_distance is automatically computed

The far-side fade distance is automatically determined from the view distance (no separate adjustment needed).

Ceiling Enabled ​

Toggle whether to display the ceiling.

  • ON: Ceiling texture is displayed (enclosed dungeon expression)
  • OFF: Ceiling is not drawn (caves, outdoor ruins, etc., where the sky is visible)

Background Enabled ​

Switch the type of background.

  • ON: Use the background image (specified by Background Image)
  • OFF: Solid color (specified by Background Color R/G/B)

Use cases

  • "Outdoors with visible sky" → Use the background image to specify a sky image
  • "Darkness of an underground dungeon" → Use background color pure black (0,0,0)
  • "Sunset temple" → Use warm-color background color

Background Image ​

Image path used when Background Enabled=true.

  • File selection button: Select from images under addons/rpg_wizard/data/sprites/
  • Supported formats: .png, .jpg, .jpeg, .webp
  • Blank: Keep as-is

Background Color R / G / B ​

Specify the solid background color when Background Enabled=false as RGB values 0-255 each.

  • Example: Pure black → (0, 0, 0)
  • Example: Deep blue → (10, 20, 60)
  • Example: Blood red → (120, 0, 0)

Move Sound ​

Path to the sound effect played when the PC moves forward one cell.

  • File selection button: Select from sounds under addons/rpg_wizard/data/sounds/sound/
  • Supported formats: .wav, .mp3, .ogg
  • Blank: Keep as-is (previous setting is inherited)
  • Blank + default also empty: Silent

Assigning different sounds based on ground material (stone, wood, water) increases immersion.

Rotate Sound ​

Path to the sound effect played when the PC rotates left/right or 180 degrees. Same handling as Move Sound.

Runtime Behavior ​

Processing Flow ​

  1. Region decision: Determine the target based on the region property
    • region=0 → merge into save_data.world.dungeon_3d_config
    • region>=1 → merge into save_data.world.dungeon_3d_region_config[region]
  2. String merge: ceiling_texture / floor_texture / wall_texture / background_image / move_sound / rotate_sound
    • Skip merge if empty string (keep as-is)
  3. Numeric and bool merge: view_distance / ceiling_enabled / background_enabled / background_color_r/g/b
    • Always merge (no concept of empty, so the specified value is adopted as-is)
  4. Instant reflection: If 3D mode is currently displayed, rebuild() reconstructs textures and environment
  5. Proceed to next Event Content

"Empty string = keep as-is" specification ​

This is the most important feature of this Event Content:

  • "Only want to change walls" → Only specify wall texture, leave others blank
  • "Only want to change view distance" → Only specify view_distance (though since it's a SpinBox, an explicit value like 0 will be entered)
  • "Keep textures unchanged but toggle ceiling presence" → Only specify ceiling_enabled

However:

  • Numbers (view_distance / background_color_r/g/b) and bools (ceiling_enabled / background_enabled) have no concept of empty
  • Entering "0" in a SpinBox is also merged as a valid value
  • To avoid the accident of "unintentionally silencing the move sound", be careful when specifying sound paths

Reference priority ​

The priority of settings actually used during 3D display:

  1. Per-region override (only when region>=1): save_data.world.dungeon_3d_region_config[region][key]
  2. Overall setting: save_data.world.dungeon_3d_config[key]
  3. JSON default: Global.dungeon_3d_settings_data[key] (default set in the editor)

Atomic batch with Change Map / Set 3D Dungeon Enabled ​

When this Event Content is placed consecutively with Change Map or Set 3D Dungeon Enabled, the tool performs atomic processing (switching together during fade). For details, see Set 3D Dungeon Enabled batch processing.

Persistence to save data ​

The settings are saved to save_data.world.dungeon_3d_config or dungeon_3d_region_config and are maintained after save → load.

Typical Usage Flows ​

Flow 1: Initial setup at dungeon start ​

Set the overall appearance at the dungeon entrance:

  1. (Dungeon entrance event)
  2. Change Map: To the dungeon map
  3. Set 3D Dungeon Config (this Event Content): Overall settings
    • Region: 0
    • Wall Texture: wall_stone.png
    • Floor Texture: floor_dungeon.png
    • Ceiling Texture: ceiling_dark.png
    • View Distance: 5
    • Ceiling Enabled: ON
    • Background Enabled: OFF
    • Background Color R/G/B: (0, 0, 0)
    • Move Sound: step_stone.wav
    • Rotate Sound: rotate.wav
  4. Set 3D Dungeon Enabled: ON

(When the above three Event Contents are placed consecutively, they are switched with a fade in an atomic batch)

Flow 2: Change atmosphere in boss room ​

Red background when entering the boss room:

  1. (Boss room arrival event)
  2. Set 3D Dungeon Config (this Event Content)
    • Region: 0
    • Wall Texture: (blank, keep as-is)
    • Background Enabled: OFF
    • Background Color R/G/B: (120, 0, 0)
  3. Show Text: "The air is dyed red..."

Flow 3: Change textures per level ​

Make the walls mossy upon entering B2F:

  1. (Event when descending the stairs)
  2. Set 3D Dungeon Config (this Event Content)
    • Region: 0
    • Wall Texture: wall_moss.png
    • Floor Texture: floor_wet.png
    • Move Sound: step_wet.wav
  3. Show Text: "I feel damp air..."

Flow 4: Per-region setting for water sections ​

Only the water section (region=1) in the dungeon has a different floor and sound:

  1. (Map entry initialization event)
  2. Set 3D Dungeon Config (this Event Content): Overall settings
    • Region: 0
    • Wall Texture: wall_cave.png
    • Floor Texture: floor_rock.png
    • Move Sound: step_rock.wav
  3. Set 3D Dungeon Config (this Event Content): Different setting only for region 1 (water)
    • Region: 1
    • Floor Texture: floor_water.png
    • Move Sound: step_water.wav

If you set region=1 on water cells on the map, the floor and sound change the moment you enter a water area.

Flow 5: Narrow view for tension ​

Narrow visibility when going deep into the cave:

  1. (Event entering the depths of the cave)
  2. Set 3D Dungeon Config (this Event Content)
    • Region: 0
    • View Distance: 2
  3. Show Text: "Darkness covers my view..."

Typical Combinations ​

  • Set 3D Dungeon Enabled: Use as a pair for 3D mode ON/OFF
  • Change Map: Place consecutively with map switching for atomic batch processing
  • Reset 3D Dungeon Regions: Clear all per-region overrides
  • Show Text: Express atmosphere changes in text
  • Play Sound (BGM): Switch BGM at the same time as the appearance change
  • Play Sound (SE): Sound effect at the moment of atmosphere change
  • If: Setting switches based on level or story progression
  • Set 3D Dungeon Enabled: 3D mode ON/OFF
  • Reset 3D Dungeon Regions: Full reset of per-region settings
  • Change Map: Atomic batch cooperation with map switching

Notes and Constraints ​

Prior basic 3D dungeon settings required ​

This Event Content is for overwriting / partial changes to existing 3D dungeon settings. The initial values (dungeon_3d_settings.json) must be set in Editor - 3D Mode Settings. If you call this Event Content "with no settings at all", unspecified items remain at their defaults.

Difference between empty string and empty number ​

  • String (texture / sound / image): Empty string = keep as-is
  • Number (view_distance / background_color_r/g/b): Always merge (0 is also a valid value)
  • Bool (ceiling_enabled / background_enabled): Always merge (false is also a valid value)

The rule "leave items you don't want to change blank" applies only to strings. For numbers and bools, be careful to avoid unintended values.

How the region feature works ​

The region feature is a mechanism to "use different settings per section of the map":

  • Set region custom data on map cells (tiles)
  • When the player enters a cell with a region-specific setting, that setting takes priority
  • Specifically, assign regions via cell attribute settings in Editor - Map

If you are not using regions, simply change the overall settings with region: 0 in this Event Content.

Use in combination with Set 3D Dungeon Enabled ​

This Event Content does not enable 3D mode itself. Unless you turn it ON with Set 3D Dungeon Enabled, the appearance will not change.

A large view distance is costly ​

Increasing the view distance exponentially increases the number of wall/floor/ceiling cells to draw, which may reduce the frame rate. If you want to consider operation on older devices, limiting the view distance to around 5-10 is safe.

Batch processing on consecutive placement ​

When this Event Content is placed consecutively with Change Map or Set 3D Dungeon Enabled, the tool performs atomic batch processing, resulting in a smooth switch with fade. For standalone use, the switch is instantaneous, so if you want the appearance change to feel natural, consider manually inserting Fade Out Screen / Fade In Screen.

Saved in save data ​

The settings are saved to save data, so after save → load, the same settings are restored.