Toggle Encounter
Category: Map/World
An event content that toggles whether step-based Encounters (battles triggered by walking) are allowed or forbidden. Use it when you want to temporarily pause Encounters in specific scenes, such as "entering a safe area so Encounters stop", "no mook battles during a boss event", or "no interruptions during a story cutscene".
Default is ON at game start
When starting a new game, Encounters are ON by default. The basic usage is to turn them OFF with this event content only in scenes where you want to forbid Encounters, then turn them back ON when done.
Saved to save data; always remember to restore
The allowed/forbidden state set by this event content is saved to save data. If you "turn OFF before a boss battle and forget to turn it back ON", Encounters will stop happening across the entire world after the Battle ends. Design events so that every OFF has a corresponding ON that restores it.
Property List
| Item | Input form | Description |
|---|---|---|
| Encounter Enabled | Checkbox | ON = allowed (Encounters happen) / OFF = forbidden (no Encounters) |
This event content has only one property and is very simple.
Details of Each Property
Encounter Enabled
A checkbox that toggles whether step-based Encounters are allowed.
- ON (checked): Encounters allowed (a Battle occurs when the step counter reaches the threshold)
- OFF (unchecked): Encounters forbidden (no Battles even while walking)
- Default: ON
This setting is a world-wide setting; it does not enable or disable Encounters only on specific maps. Per-map Encounter settings are made in each map's "Encounter" settings (and on maps that have no Encounter setting at all, this event content has no effect either).
Runtime Behavior
Processing flow
- Update save data: Save the specified allowed/forbidden state to save data
- Immediate effect: Reflected in subsequent Encounter judgments
Effect on Encounter judgment
Each time the Player Character (PC) walks, the step counter accumulates, and when it reaches the threshold, an Encounter judgment runs. When this event content is OFF, the judgment is skipped at threshold time and no Battle occurs.
Step counting continues
Step counting itself keeps running even while OFF. If a long distance is walked while OFF so that the threshold is greatly exceeded, then turning ON may cause a Battle at the next step judgment. Scenarios like "I also want to stop step counting inside a safe area" cannot be achieved by this event content (the tool does not support that, and there is no separate step reset mechanism provided).
No automatic reset on map change
Even when the map changes, this setting is not automatically reset. Even on a different map, if OFF, it stays OFF. To toggle per map, you must explicitly call this event content in each map's event.
Saved to save data
Since the allowed/forbidden state set by this event content is saved to save data, the state is preserved across save and load.
No effect on Start Battle
This event content controls only step-based Encounters. Battles triggered explicitly by the Start Battle event content still occur normally even while OFF. The pattern "stop Encounters during a boss event and let only the boss Battle happen" works correctly.
Typical Usage Flows
Flow 1: Stop Encounters before a boss event
Prevent mook Encounters before a boss battle:
- Toggle Encounter (this event content)
- Encounter Enabled: OFF
- Show Text: Dialogue with the boss
- Start Battle: Boss battle
- (Processing after the boss battle)
- Toggle Encounter (this event content)
- Encounter Enabled: ON
Flow 2: Towns as safe areas
Forbid Encounters when entering a town, allow them when leaving:
Event at the entrance (map transition destination) of the town:
- Toggle Encounter (this event content)
- Encounter Enabled: OFF
- Toggle Encounter (this event content)
Event at the exit (map transition destination) of the town:
- Toggle Encounter (this event content)
- Encounter Enabled: ON
- Toggle Encounter (this event content)
Flow 3: During a story cutscene
Prevent Encounters from interrupting a cutscene:
- Toggle Encounter (this event content)
- Encounter Enabled: OFF
- (Cutscene with PC auto-move, dialogue, image effects, BGM changes, etc.)
- Toggle Encounter (this event content)
- Encounter Enabled: ON
Flow 4: Temporary Encounter block via an item
Stop Encounters via a consumable item effect, such as "incense":
- Toggle Encounter (this event content)
- Encounter Enabled: OFF
- Assign Variable: remaining steps = 100
- (Separately implement a mechanism that decreases a variable per step and restores ON at 0)
Typical Combinations
- Start Battle: Stop mook Encounters before and after an explicit battle such as a boss battle
- Change Map: Automatically toggle ON/OFF at town/dungeon entrances
- Show Text: Prevent interruptions during cutscenes/events
- Assign Variable: Manage temporary effects such as "remaining steps of incense"
- Change Function: Combine with restrictions on operation input (such as banning menu) for cutscene effects
Related Events
- Start Battle: An explicit Battle event. It occurs regardless of the Encounter allowed/forbidden setting.
- Change Map: Used together when you want to switch Encounter settings on map change.
Related Pages
- Editor Map (Encounter settings) — How to configure Encounter settings per map
- Start Battle — Explicit Battle triggering
Notes and Constraints
Risk of "forgetting to turn Encounter back ON" that stalls the game
This setting applies world-wide and persistently. If left OFF without being turned back ON, Encounters stop completely for the rest of the game. In designs that assume level grinding, this can soft-lock the player. Always pair an OFF with a corresponding ON event.
Step counting does not stop
Steps still accumulate while OFF. If many steps are walked while OFF and then ON is restored, an Encounter may fire immediately on the next judgment. To avoid this, pair the ON restoration with a step reset (implemented separately on the user side).
No automatic reset on map change
This setting persists across map changes. If you want per-map control, explicitly call this event content in each map's transition-destination event.
No effect on Start Battle
Since this event content controls only step-based Encounters, explicit battles triggered by Start Battle still occur normally even while OFF. It cannot be used to "forbid all battles in the game".
