Welcome to PGMV! 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.
TM Skill Cost Ex - TMSkillCostEx.js
Plugin desc : Skills that consume HP or items instead of MP or TP
License : MIT License
Author : tomoaky
Desc page : https://github.com/munokura/tomoaky-MV-plugins
Download Page : https://raw.githubusercontent.com/munokura/tomoaky-MV-plugins/refs/heads/master/TMSkillCostEx.js
File name : TMSkillCostEx.js
Help of plugin :
@plugindesc Skills that consume HP or items instead of MP or TP @author tomoaky @url https://github.com/munokura/tomoaky-MV-plugins @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/tomoaky-MV-plugins ). Original plugin by tomoaky. ----- TMPlugin - Skill Cost Extension ver1.2.0 How to Use: You can add a cost by adding a tag to the skill's Note field. If the cost is an item set as "non-consumable" in the database, 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 Collapse. 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 has been tested with RPG Maker MV Version 1.6.1. This plugin is distributed under the MIT License and is free for commercial use, modification, redistribution, and other uses. Additional information on plugin parameters: hpVNumberId (mpVNumberId / tpVNumberId) The user's remaining HP immediately before the cost is consumed is assigned to the specified variable. You can reference the value of variable 1 by writing $gameVariables.value(1) in the damage calculation formula. You can also reference remaining HP by writing a.hp in the damage calculation formula, but this will be the value after the cost is consumed. hpCostVNId (mpCostVNId / tpCostVNId) The user's HP consumed immediately before the cost is consumed is assigned to the specified variable. You can Reflection this in the damage calculation formula in the same way as hpVNumberId. Memo Tag (Skill): <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 Cost 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 allows you to use control characters to set the contents of the variable as a parameter. <vnCost:¥V[14]*¥V[15]> For example, when using a skill with the above tag, if the value of variable 14 is 16 and the value of variable 15 is 3, then 3 points will be consumed from the value of variable 16. @param hpVNumberId @desc Just before damage calculation and cost consumption, assign the "remaining HP of the actor" to this variable. @default 0 @type variable @param mpVNumberId @desc Just before damage calculation and cost consumption, assign the "remaining MP of the actor" to this variable. @default 0 @type variable @param tpVNumberId @desc Just before damage calculation and cost consumption, assign the "remaining TP of the actor" to this variable. @default 0 @type variable @param hpCostVNId @desc Just before damage calculation and cost consumption, assign "HP consumed by the actor" to this variable. @default 0 @type variable @param mpCostVNId @desc Just before damage calculation and cost consumption, assign the "MP consumed by the actor" to this variable. @default 0 @type variable @param tpCostVNId @desc Just before damage calculation and cost consumption, assign the "TP consumed by the actor" to this variable. @default 0 @type variable @param ignoreEnemyItemCost @desc How to handle when an enemy uses an item-consuming skill @default 1 @type select @option Consume a party item @value 0 @option Do not consume @value 1