Setting region IDs to allow Embarking/Disembarking?

I am a little stuck on this problem. Basically I am trying to make it so that the player can only board a ship from dock and beach and only land it by those same restrictions. I found a script that allows you to designate certain region IDs as embarkable/disembarkable, but it seems to be riddled with syntax errors and I am not good enough in Ruby to fix them. [http://galvs-scripts.com/galvs-vehicle-on-off-locations/]

Is there a way to do this via eventing? Is this even possible?

Any help would be greatly appreciated.
I just tested that script - there is no syntax error and it works without changes in a new project.


You must have made a mistake copying or configuring that script, so please copy it again into your game without changes and test it.


If you still get errors, then please give us a screenshot of the error and tell us where you copied that script to, so that we can find out what you did wrong.
Alright, well, I guess the fourth copy past was the charm cause now it works. I had tried running it without modifications as well and was still getting errors.

Original thread: https://forums.rpgmakerweb.com/threads/setting-region-ids-to-allow-embarking-disembarking.24858/