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 Partial Hsl Character - MPP_PartialHslCharacter.js

Plugin desc : Change the color of part of the character graphic.

License : MIT License

Author : Mokusei Penguin

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

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

File name : MPP_PartialHslCharacter.js

Help of plugin :

* @target MZ
 * @plugindesc Change the color of part of the character graphic.
 * @author Mokusei Penguin
 *
 * @help [ver. 1.0.0]
 * - This plugin is for RPG Maker MZ.
 * - This plugin was created on an experimental basis.
 * - In some cases, we may not be able to respond to defects or requests.
 * 
 * ▼ explanation
 *  - Change the color by referring to the file name with ”_c” added to the
 *    end of the character image file name.
 *  - Pixels with an R value of 255 have their hue changed.
 *    (Clothing and hair color by default)
 *  - Pixels with a G value of 255 have their saturation changed.
 *    (Clothing and hair color by default)
 *  - The brightness of pixels with a B value of 255 will be changed.
 *    (default hair color)
 *  - Saturation and brightness can only be lowered.
 * 
 * ▼ Annotation of event execution content
 *  〇 PartialHsl hue saturation lightness
 *      hue        : Set from 0-360
 *      saturation : Set from 0-255 / Not set:255 / Lowering only
 *      lightness  : Set from 0-255 / Not set:255 / Lowering only
 *   - Change the HSL of some of the character images.
 *   - This command applies only to the first annotation of the execution.
 * 
 * ================================
 * Mail : wood_penguin@yahoo.co.jp (@は半角)
 * Blog : http://woodpenguin.blog.fc2.com/
 * License : MIT license
 * 
 *  @command setCharacterHsl
 *      @desc This is a temporary change. It is reset when the event page is changed.
 *      @arg character
 *          @desc 0:this event, 1..:event id
 *          @type number
 *              @min 0
 *              @max 999
 *          @default 0
 *      @arg hue
 *          @desc 
 *          @type number
 *              @min 0
 *              @max 360
 *          @default 0
 *      @arg saturation
 *          @desc 
 *          @type number
 *              @min 0
 *              @max 255
 *          @default 255
 *      @arg lightness
 *          @desc 
 *          @type number
 *              @min 0
 *              @max 255
 *          @default 255
 * 
 * 
 *  @param Partial Hsl Images
 *      @desc Please set the ”_c” image at the end. (Measures to exclude unused files)
 *      @type file[]
 *          @require 1
 *          @dir img/characters
 *      @default [”Damage2_c”,”People1_c”,”People2_c”,”People4_c”]
 * 
 *  @param Preload Images
 *      @desc Loads HSL images when the game starts.
 *      @type boolean
 *      @default false
 *

スポンサードリンク

-MZ plugins

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