How do I make the vehicle event?

I made a event where you need to complete a quest so that a switch is activated and you can get on the boat,but you can get on the boat even without the switch being on,how do I solve this??
there are serveral methodes to do so.

a event (empty) same as character and event touch.

if boat switch is ON
SS A = ON
else
it seems you dont have a boat pass yet
end

this way, the player can go through it on event touch, otherwise,
a message pops up (can target the sailor you need to get a pass from.

as this one can be simple one, another methode is to make a narrow path
to the boat with the sailor blocking it and walk aside when you have a pass.

there are more methodes, to easy to complex, as it depends on the story,
and mechanic of your game how to approach it.
It didnt work,was it because I placed the boat in the spot?
that shouldn't cause anything.

I mean, you can block the boat access by an invisible touch event (no image),
which process the boat ticket.

you can also place the saily in front of it so access the boat would be impossible.
you can make a small dock and put crates in front as they can come back later
as they remove the crate or such.

there are many possibilities.

but it depends on the situation and how to appraoch things.
same thing with ship and airship.

I believe you could event the boat part as well as event, and than to an
actual boat to ride by switching them.
It didnt work,was it because I placed the boat in the spot?
that shouldn't cause anything.
That's not quite correct.

Your event ID 6 isn't doing anything.

If you placed the boat vehicle there on the map, that has its own functionality - you can walk up to it and press the action button and get on. You don't need an event to do that, and putting an event there won't stop you from doing that.

What you need to do is not put the boat there. Make your event have the image of the boat and have the bit about "where is your boat pass?"

Then:
- On event 6, put a second page with the condition of switch Get Boat that is completely empty.

- In event 2, when you turn on the Get Boat switch, also put a Set Vehicle Location command to place the boat.
It didnt work,was it because I placed the boat in the spot?
Yes, that is the cause.

If you dont place the Boat there, but instead an Event which looks like the Boat, you could start with this Eventcode. But depending on further needs for the Boat Mechanic, the Code will need to grow and change. But maybe it helps you get started. If you need further help, let us know.
Eventcode example as Text:
Code:
◆If:Boat_Pass is ON
  ◆Set Vehicle Location:Boat, MAP001 (9,2)
  ◆Get on/off Vehicle
  ◆Control Switches:#0002 Hide_BoatEvent = ON
  ◆Comment:Switch is page condition for empty second eventpage
  ◆
:Else
  ◆Text:None, Window, Bottom
  :    :You need the Boat Pass.
  ◆
:End

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-the-vehicle-event.151055/