RMMZ Need help changing this part of the core script

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,954
Reaction score
549
First Language
English
Primarily Uses
N/A
Have no idea what i'm doing here, so I need help changing this part of the core script in game objects
I want to make the amount of TP one gains from value either 0 or 1, not sure which yet. Already changed the max value of TP to a low number to make this work, but i'm sure if i touch this without knowing what i'm doing the script will break. so someone help please? thanks in advance

Game_Battler.prototype.gainTp = function(value) {
this._result.tpDamage = -value;
this.setTp(this.tp + value);
};
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,115
Reaction score
7,999
First Language
German
Primarily Uses
RMMV
I think that is the wrong place to change, because "value" is set before that function is entered.
you should search for the place where that function is called and change the value there, especially if you are not sure if you want to replace it with 0 or 1.
 

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,954
Reaction score
549
First Language
English
Primarily Uses
N/A
Thanks @Andar i think you saved me from f'ing something up. I'll do that, and post here again if needed or ask for the thread to be closed if i find a solution
 

Latest Threads

Latest Profile Posts

I once thought about a boss gauntled game. I actually did it.
Stream will be live shortly with some Gex 3! Feel free to drop by!
Snippet from a game I'm working on. Not much happening here. Mostly look at atmosphere. May upload a longer version. Still need to make up some enemy arts.
Been slightly struggling with developing the latest chapter, I think I will downscale my ambitions and make it more linear.

Forum statistics

Threads
109,058
Messages
1,041,697
Members
141,544
Latest member
spacewaxamerica
Top