Skip to content

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:

  1. Show Text ← "Continue investigating?"
  2. Add Choice × 2 (Yes / No)
  3. Show Selection Window
  4. Conditional Branch (Formula {selected} == 1)
  5. End Event (this event content) ← immediately end if "No" is chosen
  6. End If
  7. (Investigation processing when Yes is chosen)

Flow 2: Interrupt event upon quest completion ​

Skip remaining processing upon quest completion:

  1. Show Text ← "Has the clear condition been met?"
  2. Conditional Branch (Formula {flag_quest_done} == 1)
  3. Show Text ← "Quest complete!"
  4. (Reward processing)
  5. End Event (this event content) ← immediately end after clearing processing
  6. End If
  7. (Normal processing if not yet cleared)

Flow 3: Force termination with HP check ​

Skip remaining processing when HP reaches 0:

  1. (Damage processing)
  2. Conditional Branch (Formula MEM_0.HP.NOW <= 0)
  3. Show Text ← "...I've fallen"
  4. End Event (this event content)
  5. End If
  6. (Continue normal processing when alive)

Flow 4: Early check at entry ​

Check conditions at the start of the event; if not met, immediately end:

  1. Conditional Branch (Formula MEMS_AVG.LEVEL.MAX >= 10)
  2. Show Text ← "You seem inexperienced; it's too soon."
  3. End Event (this event content) ← immediately end if level is insufficient
  4. End If
  5. (Main processing when level is sufficient)

Flow 5: Voluntary termination via choice ​

End when the user chooses "Quit":

  1. Add Choice (text "Investigate", Label check)
  2. Add Choice (text "Quit", Label end)
  3. Show Selection Window
  4. Set Label (Label end)
  5. End Event (this event content)
  6. Set Label (Label check)
  7. (Investigation processing)

Flow 6: Termination from within nested branches ​

Works even from inside deep branches:

  1. Conditional Branch (Formula LOCAL.A)
  2. Conditional Branch (Formula LOCAL.B)
  3. Show Text ← "Processing when A and B"
  4. End Event (this event content) ← can end even from within nesting
  5. End If ← inner
  6. 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:

  1. Conditional Branch (condition)
  2. End Event (this event content)
  3. End If
  4. (Processing when the condition is not met)

Termination via choice ​

End with "Quit":

  1. Add Choice × N
  2. Show Selection Window
  3. Conditional Branch ("Quit" determination)
  4. End Event (this event content)
  5. End If
  6. (Processing for other choices)

Interrupt upon quest completion ​

After completion check, end reward processing:

  1. Conditional Branch (completion determination)
  2. (Reward processing)
  3. End Event (this event content)
  4. End If
  5. (Normal processing when not completed)

Entry check ​

Immediately end if requirements are not met:

  1. Conditional Branch (entry requirements)
  2. Show Text ← requirement-shortage message
  3. End Event (this event content)
  4. End If
  5. (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:

MethodInternal ProcessingRecommended Use
End Event (this event content)Termination processing (flag OFF, accumulated buffer clear, autosave, etc.) is reliably triggeredWhen you really want to end the event
Move to Event + end-of-event LabelProcessing after the label (if any) is executed; termination processing occurs upon reaching the endWhen 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 ContentPurpose
Conditional BranchFrequently used together for termination determination in this event content
ElseUsed together with Conditional Branch
End IfUsed together with Conditional Branch
Move to EventMove to another event (distinguish from this event content)
Set LabelFor comparison with the end-jump method
PageRelated Content
Formula ReferenceFormulas for condition determination
Event Content ListList 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.