Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Cart Ride - CartRide.js
Plugin desc : Displays a cart sprite upon a character when they get on a cart.
License : MIT License
Author : nz_prism
Website : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CartRide/js/plugins/CartRide.js
Desc page : https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CartRide/js/plugins/CartRide.js
Download Page : https://raw.githubusercontent.com/nz-prism/RPG-Maker-MZ/master/CartRide/js/plugins/CartRide.js
File name : CartRide.js
Help of plugin :
* @target MZ
* @plugindesc Displays a cart sprite upon a character when they get on a cart.
* @author nz_prism
* @url https://github.com/nz-prism/RPG-Maker-MZ/blob/master/CartRide/js/plugins/CartRide.js
*
* @help CartRide.js
* ver. 2.1.1
*
* [History]
* 09/26/2020 1.0.0 Released
* 09/27/2020 1.0.1 Supported images which is not 48 x 48.
* 02/25/2021 2.0.0 Excluded the cart image file from unused file exclusion
* Not compatible with older versions.
* 06/22/2021 2.0.1 Sub-folder compatibility for RMMZ 1.3.0 or later
* 07/06/2021 2.0.2 Supported sub-folder improvement of RMMZ 1.3.2
* 03/23/2022 2.1.0 Added a functionality to make rails passable
* 01/03/2023 2.1.1 Added a default value for Cart Image.
*
* This plugin provides a capability to force the player move along the rail
* with a cart sprite.
*
* ■ How to Use
* 1. Configure the Tileset (See below for the detail).
* 2. Place rail tiles on a map. Although you MUST place at least the start
* and the end, you can place any other rails as you wish to.
* 3. Copy & paste the Cart event (Start) on the sample map.
* 4. Correct the direction of the sprite at the page1 of 3.
* 5. Copy & paste the Cart event (End) on the sample map.
* 6. Correct the direction of the sprite at the page2 of 5.
* 7. When you click the Cart event (Start), the player goes along the rail
* with its sprite on the cart. It automatically stops at the end of the
* rail.
*
* ■ Tileset Configuration
* See the tab ”C” of the Tileset ID 4 ”Dungeon”.
* Set the ”Passage (4 dir)” the same as the sample project.
* if you use the default tilesets, it’s a best practice to copy & paste
* the sample tilemap.
* If a tile whose Terrain Tag is the same as the value specified for the
* plugin parameter ”Passable Terrain Tag”, a player can pass it at any
* conditions even if tiles which can’t be passed are placed on/under it.
* If you want to block the rail for some reason, place an event whose Image
* is not ”Tileset” on it.
*
* ■ Cart Event
* There are 2 types of the Cart event for each of the start and the end.
* They reflect the setting for the followers. See the note of the events.
*
* It does not provide plugin commands.
*
*
* This plugin is released under the MIT License.
* https://opensource.org/licenses/mit-license.php
*
*
* @param cartCharacter
* @text Cart Image
* @desc Image information for a cart.
* @type struct<character>
* @default {”fileName”:”Vehicle”,”characterIndex”:”6”}
*
*
* @param passableTerrainTag
* @text Passable Terrain Tag
* @desc A terrain tag value to make a tile passable at any time. If 0, the normal pass test will be conducted.
* @type number
* @default 7
*