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.
MNKR SAN Map Generator - MNKR_SAN_MapGenerator.js
Plugin desc : v2.0.1 Automatically generate random maps.
License : MIT License
Author : munokura
Website : http://x.com/munokura
Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_SAN_MapGenerator.js
File name : MNKR_SAN_MapGenerator.js
Help of plugin :
@target MZ
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_SAN_MapGenerator.js
@plugindesc v2.0.1 Automatically generate random maps.
@author munokura
@license MIT License
@help
■ Overview
Executing the map generation plugin command will automatically generate a map
and
transit the player to the entrance event location.
This is useful for creating random dungeons.
■ Settings
Place tiles and events at the following coordinates on the base map in the RPG
Maker MV editor.
- Tiles
Blank: {x:0, y:0}
Room: {x:0, y:1}
Corridor: {x:0, y:2}
Ceiling: {x:0, y:3}
Wall: {x:0, y:4}
Rubbish: {x:0, y:5}
- Events
Entrance: {x:1, y:0}
Exit: {x:1, y:1}
Other: Coordinates other than those listed above
- Event Appearance Rate
You can set an appearance rate for events other than entrances and exits.
Please enter the following in the event’s memo field.
Events without an appearance rate setting will not be generated.
Spawn rate per map: <RateMap: [Positive decimal less than or equal to 1.0]>
Spawn rate per room: <RateRoom: [Positive decimal less than or equal to 1.0]>
■Plugin Commands
・MapGenerator RoomAndPass
Generates a map consisting of rooms and hallways.
・MapGenerator FillRoom
Generates a single room that spans the entire map.
■Script Commands
・Game_Character.prototype.isSameRoomWithPlayer()
Determines whether a character is in the same room as the player.
Example: Writing ”this.character().isSameRoomWithPlayer()” in the script field
of a conditional event command will determine whether the event is in the same
room as the player.
・Game_Map.prototype.pickel()
Pickaxe command.
Converts non-ground tiles in front of the player into hallway tiles.
This command is only valid in auto-generated maps.
Example: Write ”$gameMap.pickel()”
in the common event script command and execute it to dig through the wall in
front of you.
・Game_Map.prototype.bomb(x, y)
This is a bomb command.
It converts the specified coordinates and the surrounding nine non-ground
tiles into passage tiles.
This command is only valid in procedurally generated maps.
Example: Write ”$gameMap.bomb($gamePlayer.x, $gamePlayer.y)”
in the common event script command and execute it to remove the wall around
the player.
・Game_Map.prototype.makeWall(x, y)
This is a wall generation command.
It converts the ground tile at the specified coordinates into a wall (rubble)
tile.
This command is only valid in procedurally generated maps.
Example: By adding the following to the common event script command and
executing it, you can place a wall in front of the player.
・Game_Map.prototype.bigRoom()
This is a large room command.
It generates a single room that spans the entire map.
This command is only valid in auto-generated maps.
Example: By adding the following to the common event script command, you can
create a large room.
# Contact Information
This is a plugin originally created for RPG Maker MV that has been adapted for
use with MZ.
Please contact the original developer for any inquiries.
# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission from the author, and
there are no restrictions on its use (commercial, R18, etc.).
@param WallHight
@text Wall height
@desc Specify the wall height (1 to 3).
@type number
@default 1
@min 1
@max 3
@param MinRoomSize
@text Minimum room size
@desc Specify the minimum room size (3 or more).
@type number
@default 5
@min 3
@max 9007
@param MaxRoomSize
@text Maximum room size
@desc Specify the maximum room size (3 or more).
@type number
@default 10
@min 3
@max 9007
@param ShowOuterWall
@text Display on the outer wall of the room
@desc Shows the outer wall of the room.
@type boolean
@on display
@off hidden
@default true
@command MapGenerator
@text Map Generation
@desc Generates a random map.
@arg mapType
@desc The type of map to generate
@type select
@default RoomAndPass
@option A map consisting of rooms and corridors
@value RoomAndPass
@option One room spanning the entire map
@value FillRoom