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

● ARCHIVED · READ-ONLY
Started by SumRndmDde 20 posts View original ↗

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

    Spoiler
    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

    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

    Spoiler
    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

    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:

    Spoiler
    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.
  2. 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.
  3. 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?
  4. 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?
  5. SpacemanFive said:
    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.

    Fox536 said:
    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.

    RogdagoR said:
    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
  6. Veeeeeeeeeeeery nice Mr. SomeRandomDude!

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

    Congratulations!!
  7. SumRndmDde said:
    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)
  8. Iliketea said:
    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! :)

    RogdagoR said:
    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.
  9. SumRndmDde said:
    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.
  10. SpacemanFive said:
    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.
  11. RogdagoR said:
    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
  12. Siul said:
    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.
  13. SumRndmDde said:
    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.
  14. SpacemanFive said:
    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
  15. @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.
  16. 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. 
  17. Iliketea said:
    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?
  18. SumRndmDde said:
    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 ^^
  19. Iliketea said:
    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.)
  20. SumRndmDde said:
    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. ._.