RMMZ Need help changing this part of the core script

Oddball

Veteran
Veteran
Joined
Sep 4, 2014
Messages
1,951
Reaction score
547
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,060
Reaction score
7,976
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,951
Reaction score
547
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

Does anyone know of NPC sprites for RMMZ? I know of Flirion's RMMV recolours, but RMMZ's sprites are slimmer and more detailed, so I'm a bit on the edge to use Flirion's im RMMZ...
I can't believe that after all those years, KH Union X Dark Road is closing the services.

Due to a situation in which I thought plugin adaptations had stopped for the QPlugins, I "ghetto" converted these 7 over yesterday. They appear to work perfectly as long as you use old style plugin commands. I am uncertain if I will have a lot of free time in the future to work on this, but if you'd like them, here they are.
Was there a thread that you could share a screenshot of your game? I feel like I found it once but can't locate it again.

I was being lazy and just copied a map to test a new parallax, but I forgot to delete all the events. This was the result. :o

Forum statistics

Threads
108,818
Messages
1,039,783
Members
141,277
Latest member
acoolusername
Top