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

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV

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

Minimum 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

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

Sets 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

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

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:

SetActorTP [actor] [value]


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


AddActorTP [actor] [value]


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.
 
Last edited by a moderator:

SpacemanFive

Meteor Mage
Veteran
Joined
Jun 25, 2013
Messages
207
Reaction score
24
First Language
English
Primarily Uses
RMMZ
Wow. Glad to see a plugin like this! I've been needing something like this since I intend to use TP as a second (first actually) resource alongside MP, as "stamina", in my current project.

Thank you very much for making this! With this, I should be able to set it up how I'd like, for the most part. All that's missing for how I want things to work in my game is being able to set the initial TP of an actor to 100% (or on exception another percentage), and set a growth curve formula instead of a flat increase growth rate.

EDIT: Could you please put up a direct download for the plugin in your post? It's a little awkward to have to route through a youtube video.
 
Last edited by a moderator:

Fox536

Veteran
Veteran
Joined
Nov 5, 2015
Messages
173
Reaction score
60
Primarily Uses
Hey nice plugin, i was wondering if you might add a tp gain type to this, where actors gain tp differently, like some may gain it after being hit, while others regain it by attacking?
 

RogdagoR

Veteran
Veteran
Joined
Oct 1, 2015
Messages
134
Reaction score
32
First Language
Italian
Great! I was looking for a plugin like this since my actors will only use TP!

There is a way to get bonus TP gain when you crit your skill? Or if your actor's element hit a enemy weak to that element?

Is possible to have a glowing effect or other stuff over the TP bar when is full?
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Wow. Glad to see a plugin like this! I've been needing something like this since I intend to use TP as a second (first actually) resource alongside MP, as "stamina", in my current project.


Thank you very much for making this! With this, I should be able to set it up how I'd like, for the most part. All that's missing for how I want things to work in my game is being able to set the initial TP of an actor to 100% (or on exception another percentage), and set a growth curve formula instead of a flat increase growth rate.


EDIT: Could you please put up a direct download for the plugin in your post? It's a little awkward to have to route through a youtube video.


I'll add settings to allow you to determine the amount of initial TP of your Actors in battle along with the ability to reserve TP in the next update that will release later today or tomorrow.


Unfortunately, I don't have the ability to allow you to input a specific curve formula, but I can add some Notetags like:


<IncrementMTPGrowthRate: x>


Increments the MTP Growth Rate by 1 every x levels.


<IncrementMTPGrowthRateMultiplier: x>


Increments a number that is multiplied to the MTP Growth Rate every x levels.


<DoubleMTPGrowthRate: x>


Doubles the MTP Growth Rate every x levels.

Hey nice plugin, i was wondering if you might add a tp gain type to this, where actors gain tp differently, like some may gain it after being hit, while others regain it by attacking?


So you wish to restrict some Actors/Classes to only gain TP from offense/defense?


Sure, I'll add it in next update.

Great! I was looking for a plugin like this since my actors will only use TP!


There is a way to get bonus TP gain when you crit your skill? Or if your actor's element hit a enemy weak to that element?


Is possible to have a glowing effect or other stuff over the TP bar when is full?


That's a good idea.


I'll allow you to give bonus TP for Critical Hits and Super Effective Hits!


As for the TP Bar glowing thing...


I'm not that good, but I can make it so the bar changes color when it's full.


Is that good? :p
 
Last edited by a moderator:

Iliketea

Tea lover
Veteran
Joined
Oct 28, 2015
Messages
848
Reaction score
944
First Language
German
Veeeeeeeeeeeery nice Mr. SomeRandomDude!

I hereby give you the right to call yourself the knight of the TP.

Congratulations!!
 

RogdagoR

Veteran
Veteran
Joined
Oct 1, 2015
Messages
134
Reaction score
32
First Language
Italian
That's a good idea.

I'll allow you to give bonus TP for Critical Hits and Super Effective Hits!

As for the TP Bar glowing thing...

I'm not that good, but I can make it so the bar changes color when it's full.

Is that good? :p
Great! Also yeah gaining TP when hit will be cool, by a chance, by crits taken, or buffs that give you tp, or just a variable!

For the glowing i think also show a image over the bar can be cool(like lightnings)
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Veeeeeeeeeeeery nice Mr. SomeRandomDude!

I hereby give you the right to call yourself the knight of the TP.

Congratulations!!
:o

Knight of the TP?

Sounds important! :)

Great! Also yeah gaining TP when hit will be cool, by a chance, by crits taken, or buffs that give you tp, or just a variable!

For the glowing i think also show a image over the bar can be cool(like lightnings)
Don't you already gain TP from taking hits to begin with?

You can use TRG on States, Weapons, etc. to give you TP,

and <MaxTPGain: x> / <MaxTPLose: x>

let you add or remove MTP from an Actor with a certain Armor/State.

As for the image thing...I'll see what I can do.
 

SpacemanFive

Meteor Mage
Veteran
Joined
Jun 25, 2013
Messages
207
Reaction score
24
First Language
English
Primarily Uses
RMMZ
I'll add settings to allow you to determine the amount of initial TP of your Actors in battle along with the ability to reserve TP in the next update that will release later today or tomorrow.

Unfortunately, I don't have the ability to allow you to input a specific curve formula, but I can add some Notetags like:

<IncrementMTPGrowthRate: x>

Increments the MTP Growth Rate by 1 every x levels.

<IncrementMTPGrowthRateMultiplier: x>

Increments a number that is multiplied to the MTP Growth Rate every x levels.

<DoubleMTPGrowthRate: x>

Doubles the MTP Growth Rate every x levels.
Well, I meant initial value of TP when a character joins the party (like with HP and MP), but I'm glad to see you're adding that. Same goes for the extra growth rate options; even if you couldn't do exactly what I asked for, I'm really glad to see you're making it more versatile. Thank you!

Also, will it be possible to toggle on and off some of the things other people are suggesting, like the TP bar glowing when full? I'm glad to know the option will be there for them, but having it on wouldn't work for my project, which will use TP more like how MP works. I hope that's a reasonable request.
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Well, I meant initial value of TP when a character joins the party (like with HP and MP), but I'm glad to see you're adding that. Same goes for the extra growth rate options; even if you couldn't do exactly what I asked for, I'm really glad to see you're making it more versatile. Thank you!

Also, will it be possible to toggle on and off some of the things other people are suggesting, like the TP bar glowing when full? I'm glad to know the option will be there for them, but having it on wouldn't work for my project, which will use TP more like how MP works. I hope that's a reasonable request.
Can't you simply set an Actor's TP using events?

Does the "Change TP..." event not do what you wish?

Well, besides that, rest assured that everything that is added can be reverted to the non-Plugin defaults, including the possible TP bar glow/color change, there's no way I would add it with out an ability to customize and remove it.

Trust me; I know what it's like to be stuck with a Plugin that changes something you don't want to be changed.
 

Siul

Veteran
Veteran
Joined
Nov 19, 2012
Messages
81
Reaction score
14
First Language
Spanish
Primarily Uses
Great! Also yeah gaining TP when hit will be cool, by a chance, by crits taken, or buffs that give you tp, or just a variable!

For the glowing i think also show a image over the bar can be cool(like lightnings)
This and also some like Hime had on VXA: TP max states. On that script, once you full the tp, you can apply states such as limits and so
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
This and also some like Hime had on VXA: TP max states. On that script, once you full the tp, you can apply states such as limits and so
Hmmm, I see. That sounds doable. I guess that's one more thing thrown into the next update.  ;_;

Expect this to come out tomorrow everyone. Be sure to leave more feedback!

EDIT: I'll probably make this a separate Plugin, I'll let you know when it's done.
 
Last edited by a moderator:

SpacemanFive

Meteor Mage
Veteran
Joined
Jun 25, 2013
Messages
207
Reaction score
24
First Language
English
Primarily Uses
RMMZ
Can't you simply set an Actor's TP using events?

Does the "Change TP..." event not do what you wish?

Well, besides that, rest assured that everything that is added can be reverted to the non-Plugin defaults, including the possible TP bar glow/color change, there's no way I would add it with out an ability to customize and remove it.

Trust me; I know what it's like to be stuck with a Plugin that changes something you don't want to be changed.
Oh. I really need to derust and learn about all the tricks I can use with events. Thanks.

With that, it should be possible for me to set the TP of each actor to whatever is needed in gameplay or story when each one joins the party. Although I'd still like to go through the engine, myself, and see if I can track down what sets actor TP to 0% by default so I can tweak it.

Glad to hear that you can tweak which stuff is enabled and stuff. Hope my requests weren't too much of a burden or pain or anything.
 
Last edited by a moderator:

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Oh. I really need to derust and learn about all the tricks I can use with events. Thanks.

With that, it should be possible for me to set the TP of each actor to whatever is needed in gameplay or story when each one joins the party. Although I'd still like to go through the engine, myself, and see if I can track down what sets actor TP to 0% by default so I can tweak it.

Glad to hear that you can tweak which stuff is enabled and stuff. Hope my requests weren't too much of a burden or pain or anything.
Well, I've added Plugin Commands to set each Actor or an entire party's TP to full or a specific %.

So look forward to that.

Also, rest assured, your request was indeed a great pain to add in, but it'll help improve the Plugin anyway.

Want to support me? Subscribe to my YouTube channel :p
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
@Spaceman Five, @RogdagoR, @Fox536

All right. Version 2.00 is here. 

Nearly every requested feature has been added with many other new things/improvements.

Originally, it was going to be Version 1.1, but since the amount of features added was nearly doubled, decided to go with a more dramatic version number change.

Now if someone could tell me how to change the Topic Title of this post, that would be great.
 

Iliketea

Tea lover
Veteran
Joined
Oct 28, 2015
Messages
848
Reaction score
944
First Language
German
Wow! You really worked hard, so many new stuff, very nice! You deserve a cookie! 

Btw, it would be awesome if you could make it so that the actors gain a certain percentage TP back each time they won a battle.

Like 5 or 10 % or so.

Similar to tales of symphonia, every time you win a battle there you get a small amount of HP and TP back. 
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Wow! You really worked hard, so many new stuff, very nice! You deserve a cookie! 

Btw, it would be awesome if you could make it so that the actors gain a certain percentage TP back each time they won a battle.

Like 5 or 10 % or so.

Similar to tales of symphonia, every time you win a battle there you get a small amount of HP and TP back. 
Hmmm, interesting.

I should probably create a separate Plugin for that though.

Unless does one already exist that works for HP/MP?
 

Iliketea

Tea lover
Veteran
Joined
Oct 28, 2015
Messages
848
Reaction score
944
First Language
German
Hmmm, interesting.

I should probably create a separate Plugin for that though.

Unless does one already exist that works for HP/MP?
Oh, indeed, I just found one that does that. Just not TP.

I will ask there if that is possible ^^
 

SumRndmDde

Follower of RNGesus
Veteran
Joined
Jul 30, 2013
Messages
225
Reaction score
423
First Language
English
Primarily Uses
RMMV
Oh, indeed, I just found one that does that. Just not TP.

I will ask there if that is possible ^^
I see...

All right, next time I have some free time, I'll throw that in and make version 2.1.

(It should be relatively easy to do.)
 

SpacemanFive

Meteor Mage
Veteran
Joined
Jun 25, 2013
Messages
207
Reaction score
24
First Language
English
Primarily Uses
RMMZ
Well, I've added Plugin Commands to set each Actor or an entire party's TP to full or a specific %.

So look forward to that.

Also, rest assured, your request was indeed a great pain to add in, but it'll help improve the Plugin anyway.

Want to support me? Subscribe to my YouTube channel :p
Sorry about contributing to that. ._.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Finished my Sprite for Koro :D
Evil7 added!


I did a bit of a remake on one of the maps, also I made a particle for jumping into the portal, and one for traveling through the portal. I'll probably add more sparkles later to embellish it. :LZSwink:
Polished the animation and added details :kaojoy:
Ami
What do you think about the Wood Bridge inside of Volcano?

Forum statistics

Threads
105,687
Messages
1,015,550
Members
137,363
Latest member
Slew
Top