MZ Entering Your Airship While Flying, Through Only Eventing (MZ version)

A while back, I had posted a walkaround MV method for making it possible to "enter" one's airship (interior of airship) while flying, similar to how one can in Final Fantasy 6.

When testing the same method for MZ, I had to make some changes.

Here is the MZ method (working currently in v1.9.1)

First start off with 3 maps - world map, transition map, and airship interior.

World Map has Event 1
Transition Map has Event 2 and 3
Airship Interior has Events 4 and 5

Event 1

<parallel>

[Conditional Branch]
--If: Airship is driven
----If: Button [Shift] is pressed down
------Fadeout Screen
------Control Variables: [named Airship Map ID] = Map ID
------Control Variables: [named Airship X] = Map X of Player
------Control Variables: [named Airship Y] = Map Y of Player
------Control Switches: [named Airship Interior] = ON
------Control Switches: [named Airship Transition] = ON
------Transfer Player: Transition Map (I set Fade to None just in case)


Event 2:

<parallel>

[Conditional Branch]
--If: Airship Interior is OFF
---If: Airship Transition is OFF
----Wait: 90 frames
----Transfer Player: {Airship Map ID}({Airship X}, {Airship Y}) (Fade: None)
----Fadein Screen


Event 3:

<parallel>

[Conditional Branch]
--If: Airship is being driven
---Get on/off Vehicle
---Wait: 60 frames
----Transfer Player: Airship Interior (X, Y) (Direction: Up/Down, Fade: None)


Event 4:

<parallel>

(side panel) Conditions: [Switch: Airship Interior]

--Fadein Screen


Event 5 (for exiting the airship):

<Action Button>

--Control Switches: [named Airship Interior] = OFF
--Control Switches: [named Airship Transition] = OFF
--Fadeout Screen
--Transfer Player: {Airship Map ID}({Airship X}, {Airship Y}) (Direction: Up, Fade: None)
--Set Vehicle Location: Airship {Airship Map ID}({Airship X}, {Airship Y})
--Get on/off Vehicle
--Wait: 60 frames
--Fadein Screen
For real can't thank you enough for this!
First off thank you for your post. I have been missing something on getting this right and your post tipped me off to how to solve it. While doing so I think I have come up with another perhaps even better way to solve this without using a transfer map at all.

Events: 4
Switches: 1

World map: 2 Events
Event 1

<parallel>

[Conditional Branch]
--If: Airship is driven
----If: Button [Shift] is pressed down
------Fadeout Screen
------Control Variables: [named Airship Map ID] = Map ID
------Control Variables: [named Airship X] = Map X of Player
------Control Variables: [named Airship Y] = Map Y of Player
------Transfer Player: Airship Interior


Event 2: (can be set on page 2 of the first one)

<parallel>

(side panel) Conditions: [Switch: Airship Exit]

--Get on/off Vehicle
--Wait: 60 frames
--Fadein Screen
--Control Switches [Airship Exit = off]


Airship Interior: 2 Events

Event 3:

<parallel>

[Conditional Branch]
--If: Airship is driven
-----Get on/off Vehicle
-----Set Vehicle Location: Airship {Airship Map ID}({Airship X}, {Airship Y})
-----Wait: 60 frames
-----Fadein Screen



Event 4 (for exiting the airship):

<Action Button>

--Fadeout Screen
--Control Switches [Airship Exit = ON]
--Transfer Player: {Airship Map ID}({Airship X}, {Airship Y}) (Direction: Up, Fade: None)


Hope this helps someone out like your post helped me. I'm new to all of this if I got something wrong please feel free to let me know.

Original thread: https://forums.rpgmakerweb.com/threads/entering-your-airship-while-flying-through-only-eventing-mz-version.181996/