Jump to content
Coolie

Land Vehicle 1.07 [Update: 09/29/2021]

Recommended Posts

Land Vehicle v1.07

  • By: William Couillard (Coolie)
  • Last Update: September 29th, 2021

This script allows you to change the "Boat" vehicle into a land vehicle capable of traveling on the same terrain that the player is able to. You can opt to keep random encounters on or off (you can change this for the other vehicles, also), as well as choose whether or not touch events (including teleports) or action button events (pressing a button to start an event) should still process while piloting the vehicle. You can also set the movement speed of the vehicle.

Screenshot(s)
Chocobo.PNG

Features

  • Changes the "boat" vehicle to be changed to travel on land
  • Customizable land vehicle speed
  • Allow or disallow touch events from processing while driving the land vehicle
  • Allow or disallow action button events from processing while driving the land vehicle
  • Allow or disallow enemy encounters from processing while driving the land vehicle, ship, and/or airship
  • Land Vehicle will only animate while moving
  • Ship and Airship still animate while idle

Special Thanks

  • Galv (1.01 compatibility help)
  • MrTrivel (1.04 feature help)
  • Chigoo (1.06 feature help)

Script Link

http://pastebin.com/aSFvZiY1

Compatibility Patch Script: Land Vehicle v1.07 & Galv's Vehicle On/Off Locations
http://pastebin.com/3FC5Cxyb

Edited by Coolie
Script Update
  • Like 2

Share this post


Link to post
Share on other sites

In using this script would still be possible to have a boat? Like if I want a chocobo and then at a later time still use the boat to cross an ocean?

Share this post


Link to post
Share on other sites

Yes, this script does not change how the Ship or Airship vehicles function. It only changes the Boat vehicle.

Share this post


Link to post
Share on other sites

humm..

this script make like an amphibious vehicle?

 

can move on land and water?

or just change the boat to moving on land??

 

It alters the mechanics of the default Boat to move on land only.

Share this post


Link to post
Share on other sites

@rasphere: just want to help you clear things up.

basically ace have 3 vehicle : boat, ship, and airship

this script change boat to land vehicle ONLY.

if you want to travel in water. you still have ship for that.

the reason why william c create this script maybe because he think boat and ship almost have the same function. so why need 2 water vehicle? why not convert one to land vehicle? :D

Share this post


Link to post
Share on other sites

^ Exactly, and I needed a Land Vehicle for my project, as shown in the screen shot.

  • Like 1

Share this post


Link to post
Share on other sites

oh...

just make boat be a car????

LoL

 

i think it's make an amphibious vehicle

say...

nice script, later i'll try for my other project

Share this post


Link to post
Share on other sites

Script 'Land Vehicles' line 66: SyntaxError occured.

 

unexpected ';', expecting ')'

check_passage(x, y, (1 << (d / 2 - 1)) & 0x0f)

 

 

 

 

 

 

 

 

 

 

any suggestions?

Share this post


Link to post
Share on other sites

Replace the & with an &

 

it's some weird formatting where the site replaces the symbol, not the scripters fault :)

Share this post


Link to post
Share on other sites

It boggle the mind how EB has not caught on as of yet that land travel is just as important as all other forms... especially when they include horses in their list of vehicles!

 

I still think boat is necessary for rivers to make games similar to Final Fantasy, but not so much as having land vehicles.

 

Thanks for this.

Share this post


Link to post
Share on other sites

can you make a demo for this?

I always got the line 95 error,I don't know what to put for x and y

 

Can you tell me the exact error message?

Share this post


Link to post
Share on other sites

I have an idea that may be helpful if you can get it to work. Instead of the land vehicle being limited to the same terrain as the player, it would be cool if it could travel terrain that the player cannot. For example, in order for a player to travel through a forest he must enter a map of the woods and physically find a way through, but the chocobo or another land vehicle allows them to run through the forest on the world map with needing to physically go into the forest. Does that make sense?

Share this post


Link to post
Share on other sites

It can already do that. It turns touch events into "Below Hero" events that do not activate while riding it. You can set "Same Level as Hero" events to create tiles that the vehicle cannot ride through.

Share this post


Link to post
Share on other sites

That's probably exactly what it is. When used alone, there is zero chance of this script causing any errors.

Share this post


Link to post
Share on other sites

Had a quick look. William overwrote a default method for the boat that my script uses.

 

Add this below both scripts. This should make them compatible:

 

class Game_Player < Game_Character
 def map_passable?(x, y, d)
   case @vehicle_type
   when :boat
     $game_map.boat_passable?(x, y, d)
   when :ship
     $game_map.ship_passable?(x, y, d)
   when :airship
     true
   else
     super
   end
 end
end

Share this post


Link to post
Share on other sites

Had a quick look. William overwrote a default method for the boat that my script uses.

 

Add this below both scripts. This should make them compatible:

 

class Game_Player < Game_Character
 def map_passable?(x, y, d)
case @vehicle_type
when :boat
  $game_map.boat_passable?(x, y, d)
when :ship
  $game_map.ship_passable?(x, y, d)
when :airship
  true
else
  super
end
 end
end

 

::thumbsup::

 

Added a pastebin link to the original post for anyone else who may need this. Thanks Galv.

Edited by William C

Share this post


Link to post
Share on other sites

That's probably exactly what it is. When used alone, there is zero chance of this script causing any errors.

 

I just took the "Galv's Vehicle On Off Locations"script out and I am still getting the same error.

 

Edit: Never mind it works! Thank you guys for yah help :)

Edited by ninjalex

Share this post


Link to post
Share on other sites

I'm looking for some help.

I am getting the exact same error message as shown in Ninjalex's screenshot http://i569.photobuc...926/Capture.png                                                           I do not have any other custom scripts added. 

Edited by Bleeps88

Share this post


Link to post
Share on other sites
I'm looking for some help.

 

I am getting the exact same error message as shown in Ninjalex's screenshot http://i569.photobuc...926/Capture.png                                                           I do not have any other custom scripts added. 

 

Script updated to version 1.02 to fix this error.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted