A Question Regarding TP

Gruesome

Villager
Member
Joined
Mar 21, 2019
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RMMV
So - I'm using tp a bit differently than the base engine wants to, and as such I'd love the ability to control tp gain more precisely. Now I'm not necessarily looking to change how TP works, I know for instance Yanfly has a plug in that will do that - rather I'd like to simply remove (or make constant) the variable that effects the amount of tp an actor begins each battle with. Right now it seems like at the start of each fight, the main character has anywhere from 5 to 15 TP. Any way to tighten that up, either in the scripts or in a setting? Thanks in advance!
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,923
Reaction score
535
First Language
English
Primarily Uses
N/A
I know of a script that affects how much TP the charecters start with, and gaining/ losing it in battle. I also know of a script that can add states based on how much TP you have, but those are for vx ace
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,091
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
Just to note, Yanfly's Enhanced TP plugin can actually do this: each mode has an Initial TP plugin parameter. If you want to retain the default TP behaviour in other aspects, I think you just need to set the Show Command parameter to false. Then you have it all set up for later in case you want to make more changes to the TP stuff. :)

Otherwise I'm pretty sure this is the function that sets starting TP:
Code:
Game_Battler.prototype.initTp = function() {
    this.setTp(Math.randomInt(25));
};
I.e. a random number from 0~24. To change that, save something like the following as a .js file and import it like a plugin:
Code:
Game_Battler.prototype.initTp = function() {
    this.setTp(0);
};
This example should make everyone start with 0 TP. :kaojoy:
 

Gruesome

Villager
Member
Joined
Mar 21, 2019
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thank you very much everyone!! I'll look further into the plugin - just to be sure I'm not missing anything I might want to use there, but cae, that looks like just what I was looking for!
 

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

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top