This Plugin allows you to have more control over your TP system and have a dynamic Max TP stat. – SRD_TPUpgrade.js

タイトル
This Plugin allows you to have more control over your TP system and have a dynamic Max TP stat.
作者名
ヘルプ

TP Upgrade
Version 3.02
SumRndmDde


Upgrades the TP System!

Pretty much all of the main stuff to manipulate is done with Notetags.
So here they are:

==========================================================================
Actor, Class, Equipment, Weapon, State Notetags
==========================================================================

<Max TP: value>
Sets the base Max TP of the Actor to 'value'.
Value can be a JavaScript eval.

Examples: <Max TP: 5>
<Max TP: this.level2>

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


<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.atk2>


<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)%>



<Initial TP: value>
Sets the base Max TP of the Actor to 'value'.
Value can be a JavaScript eval.

Examples: <Initial TP: 5>
<Initial TP: this.level2>

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


<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.atk2>


<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
==========================================================================

<Max TP: value>
Sets the base Max TP of the Actor to 'value'.
Value can be a JavaScript eval.

Examples: <Max TP: 5>
<Max TP: this.atk2>


==========================================================================
Skill Notetags
==========================================================================

<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.level2>


<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.level2)%>


==========================================================================
Item and Skill Notetags
==========================================================================

<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.atk2 - b.def>


<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)%>



<TP Heal: 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 Heal: 120>
<TP Heal: a.hp>


<TP Heal: 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 Heal: 50%>
<TP Heal: (a.mtp / 100)%>


<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.level2>


<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.def0.5)%>


==========================================================================
Plugin Commands
==========================================================================

SetActorTP actor value
======================

This sets 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
SetActorTP 3 300
SetActorTP 2 6%
SetActorTP party 90%
SetActorTP party 0
SetActorTP pos1 100%
SetActorTP pos3 900



AddActorTP actor value
======================

This adds TP to an Actor.

To determine what to input for 'actor' and 'value' read the Plugin Command
description above.


Plugin Command Examples:

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


==========================================================================
End of Help File
==========================================================================

Welcome to the bottom of the Help file.


Thanks for reading!
If you have questions, or if you enjoyed this Plugin, please check
out my YouTube channel!

https://www.youtube.com/c/SumRndmDde


Until next time,
~ SumRndmDde
パラメータ
param Minimum Max TP
desc The minimum amount of Max TP an Actor or Enemy may have.
default 1

param Maximum Max TP
desc The maximum amount of Max TP an Actor or Enemy may have.
default 99999

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

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

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

param = Default Values =
default

param Default Actor MTP
desc The default amount of Max TP the that the Actors have if not specifically defined.
default 100 + this.level

param Default Actor ITP
desc The default amount of Initial TP the that the Actors have if not specifically defined.
default Math.randomInt(25)

param Default Enemy MTP
desc The default amount of Max TP the that the Enemies have if not specifically defined.
default 100

param Default Enemy ITP
desc The default amount of Initial TP the that the Enemies have if not specifically defined.
default Math.randomInt(100)

param = Battle TP Gains =
default

param TP Bonus Crit Use
desc Amount of TP given when battler does critical. Is JavaScript eval using 'user' and 'target'.
default 0

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

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

param TP Bonus Super Take
desc Amount of TP is given when battler is hit with super-effective. Is JavaScript eval using 'user' and 'target'.
default 0

ライセンス表記

紹介ページ https://github.com/SumRndmDde/RPG-Maker-MV-Plugins/blob/master/SRD_TPUpgrade.js