TP Control v1.1
Drakkonis
Introduction
This plugin allows you to customize the built-in TP system into pre-defined resource styles, and then assign those styles to actors, classes, and enemies. This allows you to easily have multiple different combat styles without having to event or script any differences from the default standard for each battler with a non-standard system.
For each style, there are a number of parameters you can set, and any that are left blank will behave as they otherwise would. This means you only have to set what actually will be different from the normal setup.
UPDATE:
With update version 1.1, TP Control now requires
Drak Plugin Core. Download that plugin and put it above this one.
Features
-Set up a custom 2nd resource mechanic using TP as a base, modified with your own code. This allows you to still use any TP settings in the database.
-Set up multiple styles, and then assign a style to a battler or actor class.
-Set up custom colors for the name, value, and gauge. The value color can even be set to change when full, empty, or low.
-Allows TP costs to appear side-by-side with MP costs, if both are above 0.
How to Use
Save the plugin to a file name "Drak_TP_Control.js" and install like any other plugin. Styles are set up in the parameters, you can make as many as you like. To assign a style to a battler or a class, simply write <Style:X> in the relevant notebox, where X is the name you set in the parameters. A style assigned to a class will override any style set to an actor, and only one style can be set on a battler at a time.
Most of the "meat" of this plugin relies heavily on user-written code, similar to Yanfly or VisuStella's "Lunatic Mode". The more unique from the default TP system you want your style to be, the more code you'll need to write. Therefore this plugin assumes that you have enough JavaScript skill to get your mechanic working. Otherwise, changing names and colors is about all you can do without coding.
Due to the code changes for cost displays in skill windows, this plugin is most likely incompatible with VisuStella's Skills plugin. I believe compatibility can be achieved by deleting the 3 Window_SkillList functions in my plugin. The only functionality you're likely to fully lose by doing this is having the TP cost of the skill not using the name or color defined in the TP style. If you're not using more than one style, or all styles are using the same color for the style's name, you can adjust the settings in VS' plugin to get the color you wanted.
Plugin Commands / Script Calls
This plugin currently doesn't have any plugin commands, but the script call "Drak.TPC.getStyle(battler)" will return the style the passed battler has. This can be used for conditional checks and such.
Download
TP Style Control
Copy the text to a file and name it "Drak_TP_Control.js". If you don't set the right name it won't work.
Terms and Credits
This plugin is free to use in any project, commercial and otherwise. Credit Drakkonis if used.
Miscellaneous
This should hopefully cover most, if not all, of a mechanic's requirements as far as customizability. But the number of unique mechanic ideas is at LEAST roughly equal to the number of game devs, so I'm sure I didn't think of everything someone might want a custom TP system to do. As such, I imagine there's plenty of growth potential for this plugin.
I welcome all feedback, whether bug reports, feature requests, or spots where devs might be likely to want custom code ran to support their mechanics. I attempted to get most places I could think of that such considerations could be commonly desired. This means that the more "out there" a mechanic is, the less likely this plugin can easily accommodate it.
I also think it could be interesting for people to share some styles they make, either to show off or inspire others. I know I'd certainly LOVE to see what people who use this plugin come up with.
本贴来自国际rpgmaker官方论坛作者:Drakkonis处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/varied-custom-tp-system-styles.135380/