Finish Process
Category: System
An event content for "event termination processing", of which exactly one is always placed at the end of each event and automatically managed by the tool. Users cannot actively add, delete, or move it, and in the editor's event content list, it is displayed as a ● marker. Reaching this event content confirms "complete event termination", and the game returns to the normal play state (walking around).
A "tool-fixed" event content that users cannot touch
This event content is a special event content automatically managed by the tool. When a new event is created, the tool automatically places it at the end, and users cannot add, delete, move, or copy it. It is a mechanism that guarantees "the processing to end an event".
To end an event midway, use "End Event"
Since Finish Process is fixed at the end, when you want to "end the event midway", use the End Event event content. End Event is a mechanism that automatically calls the Finish Process at the end.
Property List
No properties at all. It cannot be added or edited (tool-automatically managed).
Editor Display
- Displayed as a
●marker at the end of the event content list - Selecting this event content does not display the property editing screen (remains empty)
- Cannot be deleted, moved, or copied
- Automatically inserted when a new event is created
- Consistency check runs at event save time; if the end is not a Finish Process, it is automatically added
Runtime Behavior
Processing flow
When this event content is reached, the following processing is executed in order:
- Clear event flag: Set
Global.save_data.is_event = false(return to normal play state) - Clear accumulated buffers:
- Erase all choices accumulated by Add Choice
- Erase all buttons accumulated by Add Button
- (Prevents residue when an event ends without displaying the selection window / buttons)
- Trigger autosave (conditional):
- If Change Map has been executed by the time this event content is reached, autosave is triggered here
- A mechanism that automatically saves the final state of an event involving map changes
- Stop the event loop: Does not proceed to the next event content (subsequent event contents are not executed even if they exist)
- Wipeout determination: If the party is in a wipeout state, trigger the wipeout processing (title return or dedicated event) according to settings
Reaching this event content = complete event termination
Unlike normal event contents, this event content does not proceed to the next event content. As a result:
- The player returns to normal play (walking / menu operation)
- Operations disabled during the event are restored
- Accumulated temporary data (choices, buttons) is cleared
Guarantee of event data consistency
This tool guarantees that Finish Process always exists at the end in event files (events/*.json) through the following two systems:
- Editor side: Automatic management during event editing (auto-restored even if deleted, moved to the end if placed in the middle)
- Runtime side: Checked during event loading; added automatically if missing (defense against manual JSON editing or older versions)
This prevents accidents of "Finish Process missing and event not ending".
Autosave linkage
The design is for autosave to trigger when an event involving a map change is completed:
- When Change Map is executed within the event, the internal flag
_autosave_pending_change_map=trueis set - When Finish Process is reached, if the flag is true, the tool's
try_autosave()is called - Autosave file is actually updated only when
autosave_enabled=trueis set in Editor System
This means that even in cases like "map move → battle → game crashed before saving", recovery from autosave allows restart from the point of most recent map arrival.
Triggering of wipeout determination
When this event content is reached, if all party members are in DEAD/ESCAPE state (= 0 surviving members), according to settings:
- Return to title: Equivalent to Reset Game
- Move to dedicated event: Move to the event specified in
encounter_defeat_eventinsetting.json
Even if the party has unknowingly been wiped out by poison damage, etc. within an event, this reliably catches it and runs wipeout processing.
Usage from the User's Perspective
This event content is not something users actively use. Understand it as follows:
- When editing an event: just confirm that a
●marker is at the end; do not touch it - Designing event flow: arrange other event contents; this event content always comes last automatically
- To end an event midway: use End Event
- Tried deleting it: automatically restored at save time
- Placed Finish Process in the middle: automatically moved to the end at save time
Typical Combinations
This event content itself does not need to be considered for combinations. However, designs where you want to "complete specific processing before this event content is reached" are common:
- Change Map → reach the end of the event for autosave linkage
- Change Parameter → execute until the end to confirm state
- End Event → jump from one side of a conditional branch to the end's Finish Process
Related Events
- End Event: Event content for calling this event content from the middle. Use when you want to "end an event midway"
- Reset Game: Reset the game to its initial state (equivalent to title screen)
- Finish Game Process: End the game process itself
- Move to Event: Switch to another event (change the event itself before reaching Finish Process)
- Change Map: Autosave trigger when this event content is reached
Related Pages
- End Event — alternative means to call Finish Process from the middle
- Editor Event — about the event editing screen and
●marker display - Editor System — settings for autosave and wipeout processing
Notes and Constraints
Users cannot add, delete, or move it
This event content is a special one managed by the tool. The following operations cannot be executed in the editor:
- Add a new Finish Process
- Delete an existing Finish Process
- Move the final Finish Process to the middle
- Copy & paste to the middle
All are automatically shaped by the tool at save time. For the purpose of "ending an event midway", use End Event.
Nothing is executed after this event content even if there are subsequent entries
By the tool's internal design, this event content intentionally does not proceed to the next event content (other event contents proceed to the next after execution, but only this event content does not). If somehow Finish Process is inserted in the middle and triggered, subsequent event contents will not be executed (because middle placement is impossible via the editor's auto-shaping, this state usually does not occur).
Autosave trigger condition
Autosave triggers when Finish Process is reached only when Change Map has been executed somewhere up to this event content. It does not trigger automatically in events that do not involve map changes (e.g., only conversation with town NPCs). If you want to "force autosave in any event", you need to use Change Map intentionally within the event, or use another trick (such as Move to Event to another event that calls Change Map).
Clearing of choice/button accumulated buffers
When this event content is reached, the accumulated buffers of Add Choice and Add Button are cleared. This is a safety mechanism to ensure that in cases like "choices were added but the event ended without displaying them", old accumulated residue is not left in the next event.
