Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Command to up max TP?

A topic by DairyFreeLemon created May 15, 2024 Views: 130 Replies: 4
Viewing posts 1 to 2
(1 edit)

Heyyyyy question.

Is there a command in this to up max TP? Noticing in base RPG MZ code it's hard set to a function to return 100 :( like why rpg mz devs

If there's a way to manually increase max TP over time with commands or script commands, or something better than the visustella plugin I will definitely get this. 

Went ahead and got the stone tier (since you have other plugins I like) so I could look directly, looks like something I might have to code myself. In my own plugin.

Developer

Hi there!

Thanks for the Patron Support! Will send you a message there giving you the key that let you have some discounts here ^^

Now, I just take a look at the code to see if that was possible, and found a bug that was preventing this from happen. Now it is possible for you to increase the Max Tp of any actor dynamically, as an example would be using a variable:


Since the note tag MaxTp accepts formulas, and inside the code they are evaluated as functions, if you change the variable value, it will also change the max tp.


This would help you?

(+1)

This works perfectly! Thank you!

I'll go ahead and buy this full plugin since that's exactly what I need~

I did figure out a simple way to code it which I'll put below in case anyone ends up just needing this specific thing, easier than I thought. I prefer your way better :)

Game_BattlerBase.prototype.maxtp = 100;

Game_BattlerBase.prototype.maxTp = function(){

return this.maxtp;

}

and from there just change maxtp with script as needed, no need to make any other changes to maxTp function. 

(+1)

And yep, just tested your plugin. Works as expected when using a variable in the value spot, thank you very much :) 

Developer

Nice then! Have fun! :)