Skip to content

Start Battle ​

Category: Battle

An event content that starts a Battle from within an event. Define scenes where "a Battle must happen here", such as boss battles, event battles, or tutorial battles. You can branch separately on victory, defeat, and successful escape to another event or label, enabling rich branching flows for a single Battle.

Difference from Encounter battles

  • This event content (Start Battle): Explicitly triggers a Battle via an event (boss battles, etc.)
  • Encounter battle: A Battle that occurs automatically while walking on the map (triggered under conditions specified in system settings)

Use this event content for "Battles that will always happen", and Encounter battles for "Battles that happen by chance".

Safety design for Battle failure

At the start of a Battle, a snapshot of save data is taken internally, and on defeat the state is automatically rolled back to this snapshot. Items consumed during the Battle and reduced parameters are all restored on defeat, so the player does not feel "I lost and lost out".

Property List ​

Item (tscn label)Input formDescription
MapSelectionThe map used as the Battle background (defined in the Map tab)
TroopSelectionThe enemy troop that appears (defined in the Group tab)
Victory EventSelectionEvent to transition to on victory
Label (Victory)TextLabel to jump to on victory
Defeat EventSelectionEvent to transition to on defeat
Label (Defeat)TextLabel to jump to on defeat
Disable EscapeCheckboxWhen ON, escape from Battle is not allowed (boss battles, etc.)
Escape EventSelectionEvent to transition to on successful escape (disabled when Disable Escape is ON)
Label (Escape)TextLabel to jump to on escape (disabled when Disable Escape is ON)
TransitionSelectionTransition mode (Default / Preset / Skip)
PresetSelectionCustom transition for Preset mode

Details of Each Property ​

Map ​

Select the map used as the Battle background.

  • Dropdown: Choose from all maps created in the Map tab
  • The map's battle background image (battle_bg) is used as the background of the Battle scene

Map specifies the background, not a destination

This property determines the Battle background and does not make the player move to that map after the Battle. The player remains on the original map after the Battle.

Troop ​

Select the enemy troop that appears.

  • Dropdown: Choose from all groups created in the Group tab
  • A troop contains multiple enemy characters (one boss, several mooks, etc.)

Zero enemies is automatically treated as victory (2026-10-01)

If any of the following apply, the Battle screen is not opened and victory processing runs immediately (the Victory Event / Label transition fires):

  • Enemy troop is empty
  • Enemy troop is undefined
  • The troop contains zero enemy entries

Thanks to this, during development you can naturally test flows like "building the Battle flow before enemies are defined".

Three-way branching: Victory / Defeat / Escape ​

You can specify the branch destination after a Battle ends in three separate patterns. Each case takes an Event + Label, and the combination determines the behavior:

EventLabelBehavior
EmptyEmptyProceed to the next event content (the line after this event content)
EmptySpecifiedJump to the specified label within the current event
SpecifiedEmptyExecute the specified event from the top
SpecifiedSpecifiedExecute the specified event from the specified label

This is the same branching logic as the Event / Label properties of Add Choice.

Disable Escape ​

Prevents the player from escaping during Battle.

  • OFF (default): Escape is allowed (Escape Event / Label are active)
  • ON: Escape is not allowed (the Escape button is not shown during Battle, and Escape Event / Label are automatically disabled)

Required for boss battles

Turn ON for boss battles or key event battles where "there is no escape here".

Transition Mode ​

Specifies the screen effect (fade, etc.) at the start of Battle.

OptionBehavior
DefaultUse the system default Battle transition
PresetUse the custom transition specified by the transition key
SkipNo transition (instant switch)

How to choose

  • Default: Normal battles — basically this
  • Preset: Special effects (e.g. a special startup effect for a boss battle)
  • Skip: For debugging or instant scene changes, or when you already faded out and want to avoid additional effects

Preset (Transition Key) ​

Only enabled when Transition Mode is Preset.

  • Choose from the custom transitions defined in transition.json
  • Disabled and non-selectable in Default / Skip modes

Runtime Behavior ​

When this event content is executed, the following processing is performed in order:

1. Backward compatibility conversion of old skip_transition ​

The skip_transition property used in older versions is converted to the new transition_mode:

  • If new transition_mode exists -> new mode takes precedence
  • Old skip_transition=true -> Skip mode
  • Neither exists -> Default mode

2. Zero-enemy short-circuit (added 2026-10-01) ​

If the enemy troop is empty or no enemies are defined, the Battle screen is not opened and victory processing runs directly:

  • Both Victory Event / Label empty: proceed to the next event content
  • One of Victory Event / Label specified: transition to that destination

3. Save data snapshot before Battle ​

The pre-Battle save data is snapshotted internally. On defeat, the state is rolled back to this snapshot.

4. Opening transition ​

  • Default mode: Covers the screen with the system default transition
  • Preset mode: Effect from the specified transition key
  • Skip mode: Skipped

5. Launch the Battle screen ​

  • Battle.set_start_data initializes battle data
  • The pre-Battle BGM is internally saved (for restoration after victory/defeat/escape)
  • The battle background is set from Map's battle_bg
  • Battle BGM playback starts
  • UI commands are displayed
  • All HUD groups are paused (screen effects, images, text, choices, buttons, function buttons)

6. Processing when the Battle ends ​

On victory ​

  1. Apply end-of-Battle state effects (poison, etc.)
  2. Play victory BGM
  3. Show "Victory!" -> process drops (grant EXP/GOLD/items/equipment, level up)
  4. Show result window (if there are any gains)
  5. Close the Battle screen (closing transition)
  6. Restore the pre-Battle BGM
  7. Transition via the 4-pattern branch of Victory Event / Label

On defeat ​

  1. Show "Defeat" (lingering effect)
  2. Roll back save data to the pre-Battle state (consumed items, reduced parameters, etc. are all restored)
  3. Play defeat BGM -> restore pre-Battle BGM
  4. Close the Battle screen (closing transition)
  5. Transition via the 4-pattern branch of Defeat Event / Label

State effects at defeat do not fire

At defeat, due to the save data rollback, is_battle_end State effects at the end of Battle (such as poison's add_current_param) do not fire. This is intentional behavior.

On successful escape ​

  1. Show "Escape succeeded!"
  2. Play the escape sound (sound_escape)
  3. Fade out the Battle BGM -> restore pre-Battle BGM (or silence)
  4. Close the Battle screen (closing transition)
  5. Transition via the 4-pattern branch of Escape Event / Label

On failed escape ​

The Battle continues and moves on to the enemy attack phase.

7. Unlocking the screen ​

When the Battle ends, all HUD groups automatically resume.

8. Automatic save/restore of BGM ​

The pre-Battle BGM that was automatically saved at the start of the Battle fades back in when the Battle ends. The user does not need to write any special processing.

Typical Usage Flows ​

Flow 1: A simple Battle (win to proceed, lose to Game Over) ​

Basic boss battle:

  1. Show Text <- "At last, you've appeared, demon king!"
  2. Start Battle (this event content)
    • Map: dungeon_boss_arena
    • Troop: boss_demon_king
    • Victory Event: empty (continue on the next line)
    • Defeat Event: game_over
    • Disable Escape: ON
    • Transition: Default
  3. Show Text <- "I won...!" (reached only on victory)

Flow 2: Tutorial battle ​

An event battle you may escape:

  1. Show Text <- "Let's practice Battle"
  2. Start Battle (this event content)
    • Map: tutorial_arena
    • Troop: slime_1
    • Victory Event: tutorial_victory
    • Defeat Event: empty (continue as-is, no death)
    • Escape Event: tutorial_escape
    • Disable Escape: OFF

Flow 3: Conditional Battle ​

Change enemies based on party level:

  1. Conditional Branch (Formula MEMS_AVG.LEVEL.MAX >= 20)
  2. Start Battle (this event content) (Troop: hard_boss)
  3. Else
  4. Start Battle (this event content) (Troop: normal_boss)
  5. End If

Flow 4: Successive battles (victory leads to another Battle) ​

  1. Start Battle (this event content) (1st battle, Victory Event empty)
  2. Show Text <- "There are still more enemies!"
  3. Start Battle (this event content) (2nd battle, Victory Event empty)
  4. Show Text <- "This is the last one!"
  5. Start Battle (this event content) (3rd battle, boss)

Flow 5: Branching with labels ​

Branch destinations within the same event:

  1. Start Battle (this event content)
    • Label (Victory): victory_route
    • Label (Defeat): defeat_route
    • Label (Escape): escape_route
  2. Set Label (victory_route)
  3. (Victory processing)
  4. Move to Event (Label end)
  5. Set Label (defeat_route)
  6. (Defeat processing)
  7. Move to Event (Label end)
  8. Set Label (escape_route)
  9. (Escape processing)
  10. Set Label (end)

Flow 6: Pre-effect + Battle + post-effect ​

Add manual effects before and after Battle:

  1. Fade Out Screen (black, time 1.0)
  2. Play Sound (SE battle start sound)
  3. Start Battle (this event content)
    • Transition: Skip <- already faded
  4. Fade In Screen (black, time 1.0)
  5. Show Text <- "Phew, did I win..."

Flow 7: A boss that can be challenged multiple times ​

Victory for special reward, defeat OK, escape OK:

  1. Start Battle (this event content)
    • Victory Event: boss_victory
    • Defeat Event: empty (continue as-is)
    • Escape Event: empty (continue as-is)
    • Disable Escape: OFF
  2. Show Text <- "Will you try again?"

Flow 8: Empty battle for debugging ​

Test the flow while enemies are not yet defined:

  1. Start Battle (this event content)
    • Troop: empty (unspecified) <- treated as automatic victory
    • Victory Event: test_victory_dialog
  2. (test_victory_dialog fires; the Battle screen is not displayed)

Typical Combinations ​

See Combination Pattern Collection for the overall picture.

Basic boss battle pattern ​

Dialogue -> Battle -> victory processing:

  1. Show Text (pre-dialogue)
  2. Start Battle (this event content) (Disable Escape ON, Defeat Event: game over)
  3. Show Text (victory dialogue, reached only on victory)

Conditional Battle occurrence ​

Branch triggering by variable state:

  1. Conditional Branch (trigger condition)
  2. Start Battle (this event content)
  3. End If

Successive battles pattern ​

Multiple battles in sequence:

  1. Start Battle (this event content) (1st)
  2. Start Battle (this event content) (2nd)
  3. Start Battle (this event content) (3rd)

Three-route branching (story branches on victory/defeat/escape) ​

Branching within the same event via label jumps:

  1. Start Battle (this event content) (specify each label)
  2. Labels and corresponding processing
Related event contentUse
Conditional BranchJudging the condition for the Battle to occur
Move to EventPost-Battle transition, label jump
Set LabelBranch destination labels after Battle
Change MapSwitch maps before or after Battle
Fade Out ScreenManual effect before Battle
Fade In ScreenManual effect after Battle
PageRelated content
Map Tab (Editor)Settings for the Battle background
Group Tab (Editor)Enemy troop definitions
Enemy Tab (Editor)Enemy character definitions
System Tab (Editor)Battle BGM / Encounter settings
Event Content ListList of all event contents

Notes ​

Define enemy troops in advance in the Group tab ​

Enemy troops used in this event content must be defined in advance in the Group tab. If an undefined enemy troop is specified, as of the 2026-10-01 fix, the Battle ends immediately as a victory (zero-enemy short-circuit).

Map specifies the background, not a destination after Battle ​

The Map property determines the Battle background. After the Battle ends, you return to the original map. To switch maps, use a separate Change Map after this event content.

Save data is automatically rolled back on defeat ​

On defeat, the save data is automatically restored to the pre-Battle state. Items consumed during the Battle, reduced parameters, progress, etc. are all restored. This design keeps the player from feeling "I lost and lost out".

Escape Event / Label are auto-disabled when Disable Escape is ON ​

When Disable Escape is ON, Escape Event / Escape Label are automatically disabled in the editor. Since escape is not possible, specifying them has no effect.

Pre-Battle BGM is auto-saved and restored ​

At the start of the Battle, the BGM playing before the Battle is internally saved. When the Battle ends (victory, defeat, or successful escape), it is automatically faded back in. The user does not need to write any additional BGM processing.

The three branches (victory/defeat/escape) are set independently ​

Victory Event / Defeat Event / Escape Event are set independently. You can specify different events or different labels for each, allowing separate story branches based on Battle outcome.

Event + Label gives 4-way branching (same as Add Choice) ​

The Event / Label of each transition (victory/defeat/escape) behaves with the same logic as Add Choice:

  • Both empty -> next line
  • Only Label -> label within the current event
  • Event + Label -> specified label within the specified event

Backward compatibility of Transition Mode ​

The skip_transition property used in older versions is automatically converted to the new transition_mode. You do not need to update existing event data.

Treated as is_event=true (distinct from Encounter battles) ​

Battles triggered by this event content are internally treated as is_event=true, following a different transition path from Encounter (random) battles. Victory/defeat/escape of Encounter battles follow system settings (setting.encounter_victory_event / encounter_defeat_action / encounter_defeat_event).

Using zero enemies for debugging ​

If you want to assemble just the flow structure before defining enemy troops, leaving the enemy troop empty causes no Battle to occur; it is treated as victory, and only the Victory Event / Label transitions can be verified.