An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

MPP Mask Fog - MPP_MaskFog.js

Plugin desc : Displays a partially transparent image in front of the map.

License : MIT License

Author : Mokusei Penguin

Website : http://woodpenguin.blog.fc2.com/

Desc page : https://woodpenguin.web.fc2.com/MV_Plugin/MaskFog.html

File name : MPP_MaskFog.js

Help of plugin :

* @target MZ
 * @plugindesc Displays a partially transparent image in front of the map.
 * @author Mokusei Penguin
 * @url 
 *
 * @help [version 1.1.1]
 * This plugin is for RPG Maker MZ.
 * 
 * ▼ Plugin command
 *  - In the field where you enter a number, select the text and write v[N]
 *    to refer to the variable number N.
 *  
 *  〇 setMaskFogCavity
 *   - Make a circular transparency around the character.
 *   
 *  〇 moveMaskFogOpacity
 *   - Moves the opacity of the fog image over time.
 * 
 * ▼ Map notes
 *  〇 <MaskFog:xxx>
 *      xxx : Fog image name
 *   - Displays a fog image in front of the map.
 *   - Images are loaded from the img/parallaxes folder.
 *   - As with the distant view, adding ”!” to the beginning of
 *     the image file name will set the parallax to 0.
 * 
 *  〇 <MaskFogScroll:x,y>
 *      x : X-axis scroll speed
 *      y : Y-axis scroll speed
 *   - The fog image scrolls automatically.
 *   - The movement speed and direction are the same as the distant view
 *     of the map.
 * 
 *  〇 <MaskFogOpacity:o>
 *      o : Opacity
 *   - Specifies the opacity of the fog image.
 * 
 * ▼ Annotation of event execution content
 *  〇 FogCavity r o
 *      r : radius (1 = 1 tile)
 *      o : Opacity (Set from 0-255)
 *   - Transmits the fog image circularly around this event.
 * 
 * ================================
 * Mail : wood_penguin@yahoo.co.jp (@ is half-width)
 * Blog : http://woodpenguin.blog.fc2.com/
 * License : MIT license
 * 
 *  @noteParam MaskFog
 *      @noteDir img/parallaxes/
 *      @noteType file
 *      @noteData maps
 * 
 * 
 *  @command setMaskFogCavity
 *      @desc 
 *      @arg character
 *          @desc -1:Player, 0:This event, 1..:EventID
 *          @type number
 *              @min -1
 *              @max 999
 *          @default 0
 *      @arg radius
 *          @desc 1 = 1 tile
 *          @type number
 *              @min 0
 *              @max 99
 *              @decimals 1
 *          @default 3.0
 *      @arg opacity
 *          @desc 
 *          @type number
 *              @min 0
 *              @max 255
 *          @default 255
 * 
 *  @command moveMaskFogOpacity
 *      @desc 
 *      @arg opacity
 *          @desc 
 *          @type number
 *              @min 0
 *              @max 255
 *          @default 255
 *      @arg duration
 *          @desc Specify the time to move in frames
 *          @type number
 *              @min 1
 *              @max 999
 *          @default 60
 * 
 * 
 *  @param Player Defaults
 *      @desc 
 *      @type struct<PlayerDefaults>
 *      @default {”Radius”:”3.0”,”Opacity”:”255”}
 *
 *  @param Circle Blur
 *      @desc 0~100
 *      @type number
 *          @min 0
 *          @max 100
 *      @default 50
 *

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.