Request: Persistant TP?

MutationIvori

Villager
Member
Joined
Oct 2, 2013
Messages
20
Reaction score
40
First Language
English
Heyo~!
I wanted to request a plugin or script for persistant TP. I'm sure that this could probably be useful to more than just me, too.

So right now, default battles in RMMV start off the actors with a random amount of 1-25 TP, right? I wanted to get rid of that and just have TP start at 0, slowly build up through battles, to be used later.

Would anyone be able to write up something for that, or point me to any plugins that have that built in?

Thanks,
Mu
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
Select this trait for you actor:

 

erikmidnatt

Mercenary Wizard possessed by an Evil Spirit
Veteran
Joined
Oct 8, 2015
Messages
365
Reaction score
94
First Language
English
Primarily Uses
RMMV
the perserve TP flag should do the trick. I edited out the TP clearing from the code so I wouldn't have to add it to each character though. I also don't like the random start piece so I edited that out too.
 

MutationIvori

Villager
Member
Joined
Oct 2, 2013
Messages
20
Reaction score
40
First Language
English
@Kirikaz 

OH I never noticed that. That would do the trick!

@Erikmidnatt

Ah, thats even better! Is that just somewhere in rpg_objects.js? I tried searching "TP" But only came up with a couple of things...
 

erikmidnatt

Mercenary Wizard possessed by an Evil Spirit
Veteran
Joined
Oct 8, 2015
Messages
365
Reaction score
94
First Language
English
Primarily Uses
RMMV
Yeah it's in rpg_objects.

I don't recall exaclty what I did, I'm not on the computer that did it, but I just commented out the reset on battle end and battle start. Look for this

initTp

If I recall correctly, i just commented out 6 lines in total, check below.

Code:
Game_Battler.prototype.onBattleStart = function() {    this.setActionState('undecided');    this.clearMotion();   // if (!this.isPreserveTp()) {       // this.initTp();   // }}; 
Code:
Game_Battler.prototype.onBattleEnd = function() {    this.clearResult();    this.removeBattleStates();    this.removeAllBuffs();    this.clearActions();    //if (!this.isPreserveTp()) {       // this.clearTp();    //}    this.appear();}; 
 
Last edited by a moderator:

MutationIvori

Villager
Member
Joined
Oct 2, 2013
Messages
20
Reaction score
40
First Language
English
I see! Awesome. I'll mark this as solved now since it works out well.
 

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