RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Minimum/Maximum TP Requirements for Skills

0 Members and 2 Guests are viewing this topic.

**
Rep: +0/-0Level 75
RMRK Junior
Summary

Ever wanted to require a given amount of TP for usage of a skill without it actually costing that TP? This script lets you do that! With it, you can set minimum and/or maximum TP values for skills; if the attempted-user has less than the minimum or more than the maximum specified, the skill will be greyed out and unusable.

Script

Script can be found on Pastebin here.

Usage

Add <tpmin=[value]> to skill notebox to require a minimum TP of [value] for the skill to be usable.
Add <tpmax=[value]> to skill notebox to require a maximum TP of [value] for the skill to be usable.

Both can be used at once to limit a skill's usage to a particular range of TP, though if you set the maximum to be lower than the minimum the skill just plain won't be usable. I'm reasonably sure this is compatible with scripts that alter the TP maximum - it just compares the current value with the given numbers.
Affects both actors and enemies.

Suggestions

Just post them here. This is my first script and I didn't quite get it right on my own, but I'll see what I can do.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Cool. Thanks for sharing!