Joined
Mar 3, 2018
Messages
31
Reaction score
16
First Language
English
Primarily Uses
RMMV
So I'm looking to make a battle end after your TP runs out, but I'm not sure how to do that or if I need a plugin. I've looked around, but haven't found any other topics dealing with this either. Any ideas?
 

Meike

||Telling Stories Through Games||
Veteran
Joined
Apr 25, 2015
Messages
112
Reaction score
172
First Language
English
Primarily Uses
RMMV
I have ideas, I tested it by showing a message when a party members TP reached below 15 (the default way TP is used and gained made it difficult to test when it hit 0). It would require Yanfly's Base Troop Events so that all your enemy troops had the event page and then creating an event page that checks for the party member's TP at turn end for the span of every turn and you'd create a conditional branch and on tab 4 you can use a script and you'd check :
$gameParty.members()[0].tp <= 0

This depends on how many party members are in your party, and what you wanted to do when you loose, as say, sending them to the last inn they were at will require adding more to your event page, but if you want to check TP and do something when it reaches an amount this is a start.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,114
Reaction score
5,851
First Language
English
Primarily Uses
RMVXA
I mostly agree with @Meike's approach. I would also recommend using Hime's Custom Page Conditions plugin, in order to use the TP check as a Page Condition so that you can check at every moment (without any significant performance loss) whether the party is out of TP rather than checking once per turn. Depending on whether you want to check whether one character's TP is gone or check whether your entire party's TP is gone, your JavaScript condition will look a little bit different. You can ask in "Learning JS" if you need help figuring out how to write that condition.

And of course, the page itself will use the Abort Battle command.
 
Joined
Mar 3, 2018
Messages
31
Reaction score
16
First Language
English
Primarily Uses
RMMV
Thanks for the ideas, guys! I haven’t tried them out yet so we’ll see how that goes... in the meantime though I’ve run into another problem. I wanted to prevent characters from gaining TP through damage and wanted to be able to fill the TP gauge at certain points during the game via events. I was going to use Sumrandomdude’s plugin TP Upgrade to accomplish this, but it doesn’t seem to agree with the rest of my plugins. Whenever I have it on odd things happen during battle(enemies constantly inflicting states on you when they should be attacking, the battle stopping after a turn or two..). So I’m back to not knowing what to do for this. Any ideas?
 

Meike

||Telling Stories Through Games||
Veteran
Joined
Apr 25, 2015
Messages
112
Reaction score
172
First Language
English
Primarily Uses
RMMV
Yanfly's Enhanced TP should do what you need as far as controlling how an actor gains/loose TP in battle, and then with event commands it's actually much easier: Tab 1 under Actors there is a Change TP... option.
 
Joined
Mar 3, 2018
Messages
31
Reaction score
16
First Language
English
Primarily Uses
RMMV
Oh right... should’ve thought of that. Guess that’s it for now then. Thanks, Meike!
 
Joined
Mar 3, 2018
Messages
31
Reaction score
16
First Language
English
Primarily Uses
RMMV
Okay, so, I tried out the TP game end thing and it worked, mostly. It's still only doing a game over at the end of a turn. Which means I can still get an extra move in, even though my TP is at 0. I'm using Hime's plugin, but I'm not sure what page condition to use in order to make it run at the proper time. I've set up my plugin page conditions, but in the battle page you're forced to pick one of their premade conditions. Which condition do I need to use?
 

Meike

||Telling Stories Through Games||
Veteran
Joined
Apr 25, 2015
Messages
112
Reaction score
172
First Language
English
Primarily Uses
RMMV
I went to Hime's plugin page for that plugin and the bottom advises this:

If you want it to run at anytime, reserve a switch that will always be ON and then use that as the default troop page condition.

She has a screenshot there of what she means. Have you done that?
 
Joined
Mar 3, 2018
Messages
31
Reaction score
16
First Language
English
Primarily Uses
RMMV
Finally got the TP running correctly last night. Thanks so much for the help you two!
 

Latest Threads

Latest Posts

Latest Profile Posts

By the power of timezones! This picture shall still be posted on december 1st!!!
7xI2Gc2.jpg

This is not something I'd ever even considered but wow! What a way to use music in a game.
I am a complete fool. I went through the trouble of making a clone sprite and setting up a system to have the characters flash, when it turns out - I never noticed that the "._mainSprite" was the actual bitmap being used. I'm happy since that makes compatibility easier, but I also want to scream.
Synchronizing bust and sprite expressions! Plus using a phone behaviour :kaopride:
BVadZby.gif

Long gif tho, let it load first :kaoswt2:
Wondering how to force a Save State in VNMaker with a name and how to call it with a scene event in order to double check if this Save State exists or not. Phew... Leaving breadcrumbs for chapter DLCs to pickup would be more than half the fight in order to finish this visual novel :LZSsad:

Forum statistics

Threads
117,116
Messages
1,104,712
Members
153,156
Latest member
ridge_tim
Top