じ☆ve冰风 发表于 2026-7-28 09:06:50

TP Upgrade [v3.02] (Max TP Rate, Initial Battle TP, TP Cost/Gain, TP Damage, and


TP Upgrade



Version 3.02



by SumRndmDde



         



         









         



         



What This Plugin Does:


        Currently, TP is restricted to having a specific Max and Initial value, along with being forced to have specific mechanics built into it.


        This Plugin allows you to change all of this.


Max TP


[*]Can set an Actor's Max TP to be a certain value or JavaScript formula.
[*]Can change an Actor's Max TP with equipments, classes, states, etc. and do so by adding or subtracting a certain value, percent(%), or JavaScript formula.
[*]An Enemy's Max TP can also be set.

Initial TP


[*]Can set an Actor's Initial TP (the TP they start the battle with) as a value or JavaScript formula.
[*]And similar to the Max TP, you can manipulate the Initial TP using equipments, classes, states, and more!

Skill/Item Cost, Gain, and Damage


[*]Can set a Skill's TP cost to any value, percent(%), or JavaScript formula.
[*]Can set a Skill or Item's TP gain to any value, percent(%), or JavaScript formula.
[*]Can set a Skill or Item to do TP Damage and set a formula for how much damage is done.

Set or Add TP to Actors


[*]Can set or add Actors' TP to a certain value or percent(%).
[*]Can set or add TP to all Actors in the party.
[*]Can set or add TP to an Actor based on their position in the party.

Parameters


[*]Can set a minimum or maximum for the Max TP
[*]Can set it so all TP is preserved after battles
[*]Can restrict TP from being gained due to damage.
[*]Can show TP bar with Max TP in the Status Menu.





How to Use It:


        First, install the Plugin.


        Next, watch the video above or read the text below:


Parameters

SpoilerMinimum Max TP
                        The minimum amount of Max TP an Actor or Enemy may have.
                        Default is 1


Maximum Max TP


                        The maximum amount of Max TP an Actor or Enemy may have.
                        Default is 99999


Restrict Damage Gain?
                        Setting this to 'true' will stop Actors and Enemies from gaining TP due to damage.
                        Default is false


Preserve TP?
                        Set this to 'true' and TP will be saved and stored after battles the same was HP or MP is.
                        Default is false

Max TP in Status?
                        Set this to 'true' to add TP bar with Max TP in Status Screen. Removes the State Icons, however.
                        Default is true


TP Bonus Crit Use


                        Amount of TP given when battler does critical. Is JavaScript eval using 'user' and 'target'.
                        Default is 0

TP Bonus Super Use
                        Amount of TP given when battler does super-effective. Is JavaScript eval using 'user' and 'target'.
                        Default is 0

TP Bonus Crit Take
                        Amount of TP given when battler is hit with critical. Is JavaScript eval using 'user' and 'target'.
                        Default is 0

TP Bonus Super Take
                        Amount of TP is given when battler is hit with super-effective. Is JavaScript eval using 'user' and 'target'.
                        Default is 23 (jk, it's 0)








Actor, Class, Equipment, Weapon, and State Notetags

Spoiler                Code:       
<Max TP: value>


                        Sets the base Max TP of the Actor to 'value'.


                        Value can be a JavaScript eval.


                        Overwrittes based on priority: State, Weapon, Equipment, Class, Actor.


                        Examples:


                        <Max TP: 5>
                        <Max TP: this.level * 2>

                Code:       
<Change Max TP: +value>
<Change Max TP: -value>


                        Adds the 'value' to the Actor's Max TP.


                        Value can be a JavaScript eval.


                        Examples:


                        <Change Max TP: +300>


                        <Change Max TP: this.atk * 2>

                Code:       
<Change Max TP: +value%>
<Change Max TP: -value%>


                        Adds the 'value' to the Actor's Max TP.


                        The value is a percent based off of the Actor's Max TP.


                        Value can be a JavaScript eval.


                        Examples:


                        <Change Max TP: +50%>


                        <Change Max TP: -(this.level)%>

                Code:       
<Initial TP: value>


                        Sets the base Max TP of the Actor to 'value'.


                        Value can be a JavaScript eval.


                        Overwrittes based on priority: State, Weapon, Equipment, Class, Actor.


                        Examples:


                        <Initial TP: 5>


                        <Initial TP: this.level * 2>

                Code:       
<Change Initial TP: +value>
<Change Initial TP: -value>


                        Adds the 'value' to the Actor's Max TP.


                        Value can be a JavaScript eval.


                        Examples:


                        <Change Initial TP: +300>


                        <Change Initial TP: this.atk * 2>

                Code:       
<Change Initial TP: +value%>
<Change Initial TP: -value%>


                        Adds the 'value' to the Actor's Max TP.


                        The value is a percent based off of the Actor's Max TP.


                        Value can be a JavaScript eval.


                        Examples:


                        <Change Initial TP: +50%>


                        <Change Initial TP: -(this.level)%>








Enemy Notetags

SpoilerSets the base Max TP of the Actor to 'value'.


                        Value can be a JavaScript eval.


                        Examples:


                        <Max TP: 5>


                        <Max TP: this.atk * 2>








Skill Notetags

Spoiler                Code:       
<TP Cost: value>


                        Sets the cost of the TP of the Skill.


                        Value can be a JavaScript eval.


                        Examples:


                        <TP Cost: 120>


                        <TP Cost: this.level * 2>

                Code:       
<TP Cost: value%>


                        Sets the cost of the TP of the Skill.


                        The value is a percent based off of the Actor's Max TP.


                        Value can be a JavaScript eval.


                        Examples:


                        <TP Cost: 50%>


                        <TP Cost: (this.level * 2)%>








Skill and Item Notetags

Spoiler                Code:       
<TP Damage: value>


                        Sets the TP damage value that will be afflicted onto the target.


                        Value can be a JavaScript eval that uses 'a' and 'b' as user and target.


                        Examples:


                        <TP Damage: 120>


                        <TP Damage: a.atk * 2 - b.def>

                Code:       
<TP Damage: value%>


                        Sets the TP damage value that will be afflicted onto the target.


                        The value is a percent based off of the Target's Max TP.


                        Value can be a JavaScript eval that uses 'a' and 'b' as user and target.


                        Examples:


                        <TP Damage: 50%>


                        <TP Damage: ((a.mat / (a.mat - 1)) * 100)%>

                Code:       
<TP Gain: value>


                        Sets the gain of the TP of the Skill or Item.


                        Value can be a JavaScript eval that uses 'user' and 'target'.


                        Examples:


                        <TP Gain: 120>


                        <TP Gain: this.level * 2>

                Code:       
<TP Gain: value%>


                        Sets the gain of the TP of the Skill or Item.


                        The value is a percent based off of the Actor's Max TP.


                        Value can be a JavaScript eval that uses 'user' and 'target'.


                        Examples:


                        <TP Gain: 50%>


                        <TP Gain: (this.def * 0.5)%>








Plugin Commands:

SpoilerSetActorTP


                        This sets a specific actor's TP to a specific value.


AddActorTP


                        This adds a specific actor's TP to a specific value.


                        What 'actor' can be set to:


                        - Set this to the Actor ID of the Actor you wish to set the TP of.


                        - Set this to 'party' to set the TP of all party members.


                        - Set this to 'pos#' to set the TP of an Actor in a certain position of


                        the party. Example: pos1, pos3, pos4, etc. (pos1 is the first position.)


                        What 'value' can be set to:


                        - Set this to a direct number value. Example: 100, 30, 70


                        - Set this to a % value based off of the target's Max TP. Example: 50%, 20%


Plugin Command Examples:



SetActorTP 1 50
AddActorTP 3 -300
SetActorTP 2 6%
AddActorTP party 90%
SetActorTP party 0
SetActorTP pos1 100%
AddActorTP pos3 900








Download:


You can download it from here:


http://sumrndm.site/tp-upgrade/


Installation:


        - Place this Plugin below Yanfly's Core Engine if you are using it.


        - Place this above any Status Menu manipulator if you wish to have complete


        control over the Status Menu manipulation. Otherwise, you should place this


        Plugin below it.


Terms of Use:


- This Plugin may be used in free or commercial games.


- You are allowed to edit.


- If used in any publicly released game, then "SumRndmDde" must be given credited.


- Would be awesome if you link my YouTube also.


Questions and Answers:


        When someone asks a question pertaining to TP Upgrade 3.00, then it'll be placed here! ^^


Changelog:


Version 3.02


         - Can now use:

                Code:       
<TP Heal: x>
<TP Heal: x%>


        In Skills and Items to make them recover TP.


Version 3.01


         - Preserve TP parameter was forced back into its place.


Version 3.00


         - This Plugin was rewritten from nothing but dirt and water.


        Mostly water though....


Version 2.14 and below


         - The changes made before v3.00 and mostly irrelevant


        since the Plugin was completely rewritten.


本贴来自国际rpgmaker官方论坛作者:SumRndmDde处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/tp-upgrade-v3-02-max-tp-rate-initial-battle-tp-tp-cost-gain-tp-damage-and-more.50692/
页: [1]
查看完整版本: TP Upgrade [v3.02] (Max TP Rate, Initial Battle TP, TP Cost/Gain, TP Damage, and