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 TM Skill Cost Ex - NUUN_TMSkillCostEx.js

Plugin desc : Skill Cost Expansion

License : MIT License

Author : NUUN

Website : https://github.com/munokura/NUUN-MZ-plugins/blob/master/tomoaky/NUUN_TMSkillCostEx.js

Desc page : https://github.com/nuun888/MZ

Download Page : https://raw.githubusercontent.com/munokura/NUUN-MZ-plugins/master/tomoaky/NUUN_TMSkillCostEx.js

File name : NUUN_TMSkillCostEx.js

Help of plugin :

@target MZ
@url https://github.com/nuun888/MZ
@plugindesc Skill Cost Expansion
@author NUUN
@license MIT License

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/NUUN-MZ-plugins ).
Original plugin by NUUN.
Please check the latest official version at:
https://github.com/nuun888/MZ
-----

You can set skills that consume HP or items instead of MP or TP.

How to Use:

You can add a cost by writing a tag in the skill's memo field.

If an item set as "Not Consumable" in the database is used as a cost,
it will be treated as necessary but not consumed when using the skill.

If HP is set as the cost, the skill cannot be used if the remaining HP is
equal to the cost.
However, if the skill has the hpCostNoSafety tag,
the skill can be used even if the remaining HP is less than the cost.
Naturally, the actor who used it will be incapacitated.

If experience points are set as the cost and the expCostNoLevelDown tag is
also set,
the skill cannot be used if paying the cost would result in a level loss.

There are no plugin commands.

This plugin is distributed under the MIT License and is free to use, including
for commercial purposes, modifications, and redistribution.

Plugin Parameters:

Assigns the remaining HP (MP) before the cost is consumed to the specified
variable,
which allows the amount of consumed HP (MP) to be reflected in the damage
calculation formula.
If you set the value of hpVNumberId to 1, the remaining HP before cost
consumption will be assigned to game variable 1. You can reference the value
of game variable 1 by writing $gameVariables.value(1)
in the damage calculation formula.

Skill Memo:

<hpCost:10> # Sets the skill cost to 10 HP.
<hpRateCost:50> # Sets the skill cost to 50% of maximum HP.
<hpCRateCost:25> # Sets the skill cost to 25% of remaining HP.
<hpCostNoSafety> # Allows incapacitation by paying the HP cost.
<mpRateCost:100> # Sets the skill cost to 100% of maximum MP.
<mpCRateCost:50> # Sets the skill cost to 50% of remaining MP.
<mpCostNoMcr> # Excludes the effect of the "MP Consumption Rate" trait from
the MP cost.
<tpCRateCost:50> # Sets the skill cost to 50% of remaining TP.
<ignoreTpCost> # When the skill's TP cost is insufficient, it can be activated
by consuming all TP.
<itemCost:I1*2> # Sets two items #1 as the skill cost.
<itemCost:W2*1> # Sets one weapon #2 as the skill cost.
<itemCost:A5*1> # Sets one armor #5 as the skill cost.
<expCost:50> # Sets 50 experience points as the skill cost.
<expCostNoLevelDown> # Disables level down due to experience points.
<goldCost:100> # Sets 100 gold as the skill cost.
<vnCost:3*1> # Sets the value of game variable #3, 1, as the skill cost.

Special usage of the vnCost tag:

Only the vnCost memo tag can use control characters to set the variable
contents as parameters.

<vnCost:¥V[14]*¥V[15]>
For example, when using a skill with the above tag, if variable 14 has a value
of 16 and variable 15 has a value of 3, then variable 16 will consume 3
points.

Update History
2021/5/1 Ver. 1.1.1
First ported version

@param hpVNumberId
@text Remaining HP before consumption assignment variable
@desc The variable number to which the remaining HP before cost consumption is assigned when using a skill. (Setting 1 or higher will enable this.)
@type variable
@default 0

@param mpVNumberId
@text Remaining MP before consumption assignment variable
@desc The variable number to which the remaining MP before cost consumption is assigned when using a skill. (Setting 1 or higher will enable this.)
@type variable
@default 0

@param tpVNumberId
@text Remaining TP before consumption assignment variable
@desc The variable number to which the remaining TP before cost consumption is assigned when using a skill. (Setting 1 or higher will enable this.)
@type variable
@default 0

@param ignoreEnemyItemCost
@text Ignore enemy item costs
@desc Whether enemies should ignore item costs when using skills
@type select
@default 1
@option Consume party items
@value 0
@option ignore
@value 1

スポンサードリンク

-MZ plugins

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