End Event
Category: Flow
An event content that ends the currently running event in the middle. Use it in cases where "this event no longer needs to continue" — such as when a condition is satisfied, after specific processing in a branch, or upon quest completion.
Event termination processing runs automatically
When this event content is executed, subsequent event contents are skipped, and the internal processing associated with event termination (clearing residual choices/buttons, autosave, etc.) is reliably executed.
It is a mechanism that triggers the same termination processing as normal event completion (when execution reaches the end) at a middle point.
Property List
This event content has no properties. It operates simply by being added to the event content list.
Runtime Behavior
When this event content is executed, the following processing occurs:
1. Jump to the end of the event content list
Internally scans the event content list from the end and jumps to just before the event termination processing.
2. The normal termination processing reliably triggers
After jumping, the normal event termination processing is executed:
- Turn off the event execution flag
- Clear the internal data accumulated by Add Choice / Add Button (preventing residue)
- For events involving map changes, trigger autosave
A reliable way to "really end the event"
This event content is the only method the user can explicitly describe as "it's really over". Jumping to the end label using Move to Event may not reliably execute the internal termination processing (clearing accumulated buffers, etc.), so when you want to completely end the event, using this event content is recommended.
Typical Usage Flows
Flow 1: Immediately end upon satisfying a condition
If a condition is met, skip all subsequent processing and end the event:
- Show Text ← "Continue investigating?"
- Add Choice × 2 (Yes / No)
- Show Selection Window
- Conditional Branch (Formula
{selected} == 1) - End Event (this event content) ← immediately end if "No" is chosen
- End If
- (Investigation processing when Yes is chosen)
Flow 2: Interrupt event upon quest completion
Skip remaining processing upon quest completion:
- Show Text ← "Has the clear condition been met?"
- Conditional Branch (Formula
{flag_quest_done} == 1) - Show Text ← "Quest complete!"
- (Reward processing)
- End Event (this event content) ← immediately end after clearing processing
- End If
- (Normal processing if not yet cleared)
Flow 3: Force termination with HP check
Skip remaining processing when HP reaches 0:
- (Damage processing)
- Conditional Branch (Formula
MEM_0.HP.NOW <= 0) - Show Text ← "...I've fallen"
- End Event (this event content)
- End If
- (Continue normal processing when alive)
Flow 4: Early check at entry
Check conditions at the start of the event; if not met, immediately end:
- Conditional Branch (Formula
MEMS_AVG.LEVEL.MAX >= 10) - Show Text ← "You seem inexperienced; it's too soon."
- End Event (this event content) ← immediately end if level is insufficient
- End If
- (Main processing when level is sufficient)
Flow 5: Voluntary termination via choice
End when the user chooses "Quit":
- Add Choice (text "Investigate", Label
check) - Add Choice (text "Quit", Label
end) - Show Selection Window
- Set Label (Label
end) - End Event (this event content)
- Set Label (Label
check) - (Investigation processing)
Flow 6: Termination from within nested branches
Works even from inside deep branches:
- Conditional Branch (Formula
LOCAL.A) - Conditional Branch (Formula
LOCAL.B) - Show Text ← "Processing when A and B"
- End Event (this event content) ← can end even from within nesting
- End If ← inner
- End If ← outer
Typical Combinations
See Combination Pattern Collection for the overall picture.
Conditional early termination pattern
Skip subsequent processing if a condition is met:
- Conditional Branch (condition)
- End Event (this event content)
- End If
- (Processing when the condition is not met)
Termination via choice
End with "Quit":
- Add Choice × N
- Show Selection Window
- Conditional Branch ("Quit" determination)
- End Event (this event content)
- End If
- (Processing for other choices)
Interrupt upon quest completion
After completion check, end reward processing:
- Conditional Branch (completion determination)
- (Reward processing)
- End Event (this event content)
- End If
- (Normal processing when not completed)
Entry check
Immediately end if requirements are not met:
- Conditional Branch (entry requirements)
- Show Text ← requirement-shortage message
- End Event (this event content)
- End If
- (Main story)
Difference from Termination via Move to Event
Using Move to Event to jump to a Set Label at the end can also skip subsequent processing, but there are differences:
| Method | Internal Processing | Recommended Use |
|---|---|---|
| End Event (this event content) | Termination processing (flag OFF, accumulated buffer clear, autosave, etc.) is reliably triggered | When you really want to end the event |
| Move to Event + end-of-event Label | Processing after the label (if any) is executed; termination processing occurs upon reaching the end | When you still want to execute common processing at the end |
When you clearly want to end the event, using this event content is recommended.
Related Event Contents
| Related Event Content | Purpose |
|---|---|
| Conditional Branch | Frequently used together for termination determination in this event content |
| Else | Used together with Conditional Branch |
| End If | Used together with Conditional Branch |
| Move to Event | Move to another event (distinguish from this event content) |
| Set Label | For comparison with the end-jump method |
Related Pages
| Page | Related Content |
|---|---|
| Formula Reference | Formulas for condition determination |
| Event Content List | List of all event contents |
Notes
Subsequent event contents are skipped
When this event content is executed, all subsequent processing in the event content list is skipped and the event ends. To prevent unexpected skipping of processing, carefully choose the position to place it.
Can be used from inside branches and loops
This event content can be executed even from inside Conditional Branch or Loop. It is possible to end the entire event even from within deep nesting.
Same termination processing as running to the end
The termination processing when this event content is executed is the same as when the event is executed to the end. Clearing of residual choices/buttons and autosave as needed are triggered.
Differentiation from the method of jumping to the end label with Move to Event
Using Move to Event to jump to a Set Label at the end can also skip intermediate processing, but if there is processing after the label, it will be executed. When you "really want to end the event", using this event content makes the intent clearer.
Unconditional placement has no meaning
If this event content is placed unconditionally (outside a branch), the event will simply end there. Normally, use it in combination with Conditional Branch as "end when a specific condition is met".
No constraint on event data
This event content can be placed anywhere, any number of times, within an event. It is possible to set up termination points from multiple locations.
