MV Coolie's Battle Turn Count Window [v2.00]

Coolie's Battle Turn Count Window v2.0​
turn_count_window.png


What does this do?
It adds a small window to battle that displays the turn count.

How do I customize it?
There are options in the plugin to change the position of the window, opacity of the window, back opacity of the window, and the style of the window. There is also a window width setting. The height is set to one line because I can't think of a time where you'd need more than one.

You can choose to hide the window while the item or skill selection window is open during battle.

How is compatibility?
Should be extremely high, as it only aliases functions or creates new ones.

Terms of Use
This plugin, 'Coolie_BattleTurnCount v2.00', is OK to use in commercial and non-commercial projects, free of charge. It is prohibited to redistribute this plugin, or copy JavaScript from it for use elsewhere.

Where can I get it?
Here on my Pastebin (click "download" button, keep filename the same)

Let me know if there are any major issues, I will try to patch for compatibility if I can. This was made for RPG Maker MV 1.6.1 so I cannot promise it will work in earlier versions, but it probably will.

What comes next?
Considered completed at this point.
hey, plugin is awesome.

can i save the turn count of the last battle as a variable?
Also get the name of the last enemy troop fought?

just ideas to maybe make side quests that say you beat a monster in X turns you get a reward or something.
thanks!
If you wish to expand this in the future and want to show individual turncounts for each actor, _tpbTurnCount stores the number of turns for each actor and is updated when the party member's time gauge is full(i's their turn). Obviously this is also useless if the battle system of a given game doesn't utilize the Turn Based system.
Oops, just noticed this is for MV, maybe what I stated might be a bit different.
hey, plugin is awesome.

can i save the turn count of the last battle as a variable?
Also get the name of the last enemy troop fought?

just ideas to maybe make side quests that say you beat a monster in X turns you get a reward or something.
thanks!
You can use enemy.deathTurn() as a condition with Yanfly's Extra Enemy Drops plugin to make enemies drop something if defeated in X turns or under, I believe.
Link gives error 403,not showing or pending.
Link gives error 403,not showing or pending.
Should be fine now.
heeyyy any chance you or anyone can update mod to show or hide count window?
@Raggon in which way, by toggling it on/off by user?
as adding a switch should be easy enough to turn it ON or OFF,
maybe by scriptcall too.
@Raggon in which way, by toggling it on/off by user?
as adding a switch should be easy enough to turn it ON or OFF,
maybe by scriptcall too.
either way can you do a plugin command?
I could, I added a switch ID though, if it works, I can add plugin
command to it, but it require a little modification by than.

so see if this one works for you (untested).
there is a new param to toggle it on and off.
<plugin removed>
I could, I added a switch ID though, if it works, I can add plugin
command to it, but it require a little modification by than.

so see if this one works for you (untested).
there is a new param to toggle it on and off.
hi just tested on a vanilla MV its not working 🙁
there is some issues, to see why it doesn't work, and how to alter
it to make it work on with a plugin command.

so I update it later once it got it to work and what I miss.

EDIT:
@Raggon
I get it to work with plugin command/switch when outside battle,
but it doesn't seem to work inside battle yet.

I try to make both available, as I dont know what you exactly want though.

Edit2:
the plugin commands only works outside battle, I dont know how to make
it work inside battle though sorry,

Plugin Commands: (temporarly)
BTW true = make Battle turnWindow visible
BTW false = make Battle turnWindow hide
BTW toggle = toggle window visible or hide

if you can find a better way or approach that works inside battle, use that.
Updated to v2.00:
  • Plugin Commands added (ShowTurnCount, HideTurnCount)
  • General Settings added (Hide on Item/Skill)
  • Window Settings added (Opacity, Back Opacity, BattleLog Style)

Original thread: https://forums.rpgmakerweb.com/threads/coolies-battle-turn-count-window-v2-00.140523/