Altering TP gain from damage

Kotaro

Übernerd
Veteran
Joined
Mar 29, 2012
Messages
164
Reaction score
11
First Language
English
Primarily Uses
RMMV
By default, actors gain TP when they use skills or take damage. I can easily set how much TP is gained from using a skill, but I don't see any easy way to manually set how much TP is gained when taking damage. I want to use TP for basically Limit Breaks, and as it is, the gauge fills far too quickly, and I want to reduce it to something like 1 or 2 points per attack given or received. How can I do that?
 

kennysaurs

Amazing Person
Veteran
Joined
Oct 21, 2015
Messages
54
Reaction score
13
First Language
English
So I dug through the code and found out that the original formula for one way of gaining TP is:

50% * HP% of damage taken = TP Gain

So an example would be that if someone receives 30% HP Damage, then they gain 15 TP. 50% damage gives 25 TP, etc.

You can edit the formula in the rpg_objects.js code. 



So I guess until someone makes a plugin to edit this easily, we'll have to edit these formulas manually.

The other formula for gaining TP when using a skill should be near there somewhere.
 
Last edited by a moderator:

Kotaro

Übernerd
Veteran
Joined
Mar 29, 2012
Messages
164
Reaction score
11
First Language
English
Primarily Uses
RMMV
Thanks. Just edited it manually to change the percentage from 50 to 10, since that would be better balance in what I'm making.
 

cygnus

Veteran
Veteran
Joined
Aug 24, 2015
Messages
30
Reaction score
12
First Language
English
Primarily Uses
Thanks. Just edited it manually to change the percentage from 50 to 10, since that would be better balance in what I'm making.
Alternatively, you could just delete the code out of the game, and then just individually assign a TP value for each skill that players and enemies use, no?
 

Prescott

argggghhh
Veteran
Joined
Aug 28, 2014
Messages
467
Reaction score
357
First Language
English
Primarily Uses
RMMV
Alternatively, you could just delete the code out of the game, and then just individually assign a TP value for each skill that players and enemies use, no?
The only issue with that is that you can't set it for just normal attacks :p
 

MagicMagor

Veteran
Veteran
Joined
Apr 7, 2012
Messages
201
Reaction score
38
First Language
German
The only issue with that is that you can't set it for just normal attacks
The normal attack is just using Skill #1 - so in fact you can.
 

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

Latest Threads

Latest Posts

Latest Profile Posts


The main character of the book)
Things you can say about your rpg maker project but not your bf/gf: I'm not super committed but it's fun to play around with it.
putting a puzzle in my game that BSODs the player's computer if they complete it
I finally got a book out the door after seven years of nothing \^-^/ Now if I can get a game out the door too, that'd be great...

Forum statistics

Threads
94,366
Messages
920,300
Members
124,131
Latest member
Tharene
Top