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

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

MZ plugins

NUUN Skill Cost EX - NUUN_SkillCostEX.js

Plugin desc : Skill cost EX

License : MIT License

Author : NUUN

Website : https://github.com/nuun888/MZ/blob/master/NUUN_SkillCostEX.js

Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_SkillCostEX.js

File name : NUUN_SkillCostEX.js

Help of plugin :

* @target MZ
 * @plugindesc Skill cost EX
 * @author NUUN
 * @version 1.3.3
 * 
 * @help
 * You can set various costs for skill costs.
 * 
 * Skill Notes
 * HP consumption skill
 * <SkillHPCost:150> Consumes 150 HP as a cost.
 * <SkillHPCostMR:30> Consumes 30% of maximum HP as a cost.
 * <SkillHPCostR:30> Consumes 30% of the remaining HP as a cost.
 * <HPCostDead> Allows death by consumption.
 * 
 * MP consumption skill
 * <SkillMPCost:150> Consumes 150 MP as a cost. You can only set up to 9999 on the database, but you can set a cost of 10000 or more.
 * <SkillMPCostMR:30> Consumes 30% of maximum MP as cost.
 * <SkillMPCostR:30> Consumes 30% of the remaining MP as a cost.
 * <MPCostNoMcr> Does not apply the effect of MP consumption rate.
 * 
 * TP consumption skill
 * <SkillTPCostR:50> Consume 50% of remaining TP as cost.
 * 
 * Possession money consumption skill
 * <SkillGoldCost:1000> Consume 1000G of your money as a cost.
 * <SkillGoldCostR:30> Consume 30% of your money as a cost.
 * 
 * EXP consumption skill
 * <SkillExpCost:300> As a cost, you lose 300 experience points.
 * <SkillLavelExpCost> Consume from the current level of earned experience.
 * <SkillExpCostR:50> Consume 50% of the earned experience points up to the next level of experience points.
 * 
 * Item consumption skill
 * <SkillItemCost:[itemType],[itemId],[num],[mode]> Consume items, weapons, and armor as a cost.
 * If you specify multiple items, you can use them if you have all the items.
 * [itemType]:Item type  I Item W Weapon A Armor
 * [itemId]:Item, Weapon, Armor ID
 * [num]:Consumed quantity
 * [mode]:Including equipment 0: Not including 1: Including
 * [mode] is valid when equipping equipment items. If you don't have it, it will be consumed from your equipped weapons and armor.
 * 
 * Equipment consumption skill
 * <SkillEquipCost:[itemType],[itemId],[num],[eval]> Consumes equipped weapons and armor as a cost.
 * [itemType]:Item type  W Weapon A Armor
 * [itemId]:Weapon/Armor ID
 * [num]:For no consumption, 1 for lost
 * [eval]:If [num] is 1, enter the conditional expression to consume. If the condition is not met, it will not be deleted. If omitted, it will always be consumed.
 * Example:<SkillEquipCost:W,53,1,$gameParty.numItems($dataItems[1]) === 0> Disappears equipment with weapon ID 53 when there is no item with item ID 1.
 * 
 * Game variable consumption skill
 * <SkillVarCost:[id],[cost]> Consume from the value set in the game variable.
 * <SkillVarCost:6,3> Consumes 3 from the value of game variable number 6.
 * [id]:Game variable ID
 * [cost]:Consumption cost
 * <SkillVarCostR:[id],[max],[rate]> Consumes [rate]% of [max] from the value set in the game variable.
 * If [max] is 0, consume [rate]% from the current value.
 * <SkillVarCostR:5,0,30> Consumes 30% from the current value of game variable number 5.
 * <SkillVarCostR:5,100,30> Consumes 30% of the maximum (100) from the value of game variable number 5.
 * [id]:Game variable ID
 * [max]:Max value
 * [rate]:Percent Consumption Cost (%)
 * 
 * Evaluation formula
 * <SkillEvalCost:[eval]> Enter the evaluation formula for judging consumption.
 * <SkillEvalCons:[eval]> Enter the evaluation formula for consumption.
 * 
 * Do not enter [].
 * 
 * Acquisition parameter
 * this.consBHp:Stores subject's HP before consumption.
 * this.consBMp:Stores subject's MP before consumption.
 * this.consBTp:Stores subject's TP before consumption.
 * this.consBGold:Stores the subject's money before consumption.
 * this.consBExp:Stores the subject's current level of gained experience before consumption.
 * 
 * Skill damage formula
 * By entering "a.consBMp * 1.5", you can give 1.5 times the damage of MP before consumption.
 * 
 * Notes with features
 * <NoConsumptionCost[id]:±[rate]> Specifies the probability of not consuming.
 * [id]:
 * 1:MP 2:TP 3:HP 4:Gold
 * [rate]:Consumption rate (±) The initial value is 0.
 * 
 * Terms of Use
 * This plugin is distributed under the MIT license.
 * 
 * Log
 * 1/26/2025 Ver.1.3.3
 * Fixed an issue where if you had enabled incapacitation due to consumption when consuming HP cost, you couldn't use skills with a cost higher than the current HP.
 * Fixed an issue where enemy graphics would remain displayed when you were incapacitated due to consuming HP cost.
 * 1/13/2024 Ver.1.3.2
 * Supported SkillCostRateCustomize so that it functions other than MP and TP.
 * 7/23/2023 Ver.1.3.1
 * Fixed an issue where HP and Gold were not consumed.
 * 7/13/2023 Ver.1.3.0
 * Added a function that does not consume MP, TP, HP, and Gold with a probability.
 * 7/9/2023 Ver.1.2.4
 * Fixed an issue where skills could not be selected when HP was 0.
 * 2/19/2023 Ver.1.2.3
 * Added a function to disappear equipped weapons and armor if you don't have them by consuming items.
 * 2/15/2023 Ver.1.2.2
 * Added a function that allows you to set the cost to disappear the equipped equipment when the conditions are met.
 * 12/17/2022 Ver.1.2.1
 * Correction of processing.
 * 12/4/2022 Ver.1.2.0
 * Added a cost that can be consumed as a percentage from a game variable.
 * 11/25/2022 Ver.1.1.1
 * Added MP skill cost. (Cost can be set to 10000 or more)
 * Changed the display in languages other than Japanese to English.
 * 4/2/2022 Ver.1.1.0
 * Added a function that allows you to set skills to be activated by consuming equipped weapons and armor.
 * 12/5/2021 Ver.1.0.0
 * First edition.
 * 
 *

スポンサードリンク

-MZ plugins

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