I just want to count the turns passed in a Time Progress (Wait) Battle. Thanks for this.
For whom? The individual or the battle turn count ? Please read the thread
@ATT_Turan has linked to if you are unsure.
If you want the battle turncount, it's
$gameTroop.turnCount(), otherwise I think it should be
$gameParty.members()[x].tpbTurnCount, judging from the below in rmmz_objects.js:
JavaScript:Game_Battler.prototype.turnCount = function() {
if (BattleManager.isTpb()) {
return this._tpbTurnCount;
} else {
return $gameTroop.turnCount() + 1;
}
};
EDIT: oh wait, if you're using TPB
$gameParty.members()[x].turnCount will automatically give you the individual turn count... doh!
EDIT2: I just confirmed this in a playtest, but as the code suggests you need to add
1 to get the battle turn count as it starts at 0, so
$gameTroop.turnCount() + 1.