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
- Last In Visited ID
- Last In Visited X
- Last In Visited Y
SWITCHES:
- 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
- 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:
- Inn Visited: runs at the End of Every Inn Interaction:
View attachment 242962
- 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