public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

MZ Return to Inn/Designated Area After Death Plugin (Event Solution Created)

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: MZ Return to Inn/Designated Area After Death Plugin (Event Solution Created)
  • Original author: Puppet Knight
  • Original date: October 17, 2022
  • Source thread: https://forums.rpgmakerweb.com/threads/return-to-inn-designated-area-after-death-plugin-event-solution-created.152045/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Requests

Summary

Good evening all. I'm looking to set up Inns/Rest areas in my game. Ideally if the party loses a battle, rather than simply a "Game Over" i'd like to have the active party transfer to the last Inn used or to a predetermined map location. Anyone know of any plugins that exist for this? In the Meantime I've Common Event and Switched a Solution using VisuStella Battle Core MZ as a foundation

Archived First Post

Good evening all. I'm looking to set up Inns/Rest areas in my game.

Ideally if the party loses a battle, rather than simply a "Game Over" i'd like to have the active party transfer to the last Inn used or to a predetermined map location.

Anyone know of any plugins that exist for this?


In the Meantime I've Common Event and Switched a Solution using VisuStella Battle Core MZ as a foundation


Here's what I did in case someone else comes along and finds this:

As @caethyril stated, Defeat Event is the go to for setting up the Common Event to run after a defeat. Adding an event here seems to completely dodge the Game Over Screen.

Set up 3 Variables, 2 Common Events, and 2 Switches (for my project I set up 6 switches since I have extra story points, but I made a a simple sample for anyone to use below)

VARIABLES
  1. Last In Visited ID
  2. Last In Visited X
  3. Last In Visited Y

SWITCHES:
  1. Return to Inn (This Switch Should be OFF by Default for you project, else there are no coordinated stored to transfer to when you party is defeated). ON should be added to each Inn/Rest Area
  2. Event Battle (Optional) ON Added at the beginning of Event Battles that involve If Lose conditions. OFF should be run at the end of the Defeat Event

COMMON EVENTS:
  1. Inn Visited: runs at the End of Every Inn Interaction:

    View attachment 242962


  2. Defeat Event: run by Battle Core on Party Defeat:
    View attachment 243011
If the party has not yet visited an Inn, the ELSE defines where the party will be transferred to by default. This is to avoid the game breaking and why I noted that the "Return to Inn" switch should be OFF by default. (Alternatively you can have the coordinates designated at the games opening using an Autorun event)

INN EVENTS:
View attachment 242963


It is your decision whether to have the common event run anytime the conversation occurs, upon entry to the Inn (Pokémon center style) or only if you choose to rest there. For my purposes having the conversation is enough for now.

UPDATE:
This event will run even for non-random/event based battles. So if you have a "If Lose condition that involves a transfer that will occur and then the "Defeat Event" will still run. To avoid this, create an additional Switch called "Event Battle" Updated Images above ^



I hope this is helpful to someone in the future and aids the community to avoid similar questions coming up! Open to feedback from anyone that can think of any tweaks to streamline this and/or if there is just generally a plugin that exists to solve for this. However the less plugins the better sometimes!



Thanks all



Going to update the thread title to make this more searchable

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-requests

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar