Help with tracking turn count in battles

zabuzafreak

Villager
Member
Joined
Oct 30, 2015
Messages
9
Reaction score
0
First Language
English
So I've used the search function to try and answer this question first, however the only thing I could find was this by DoubleX;
 

BattleManager.update = function() {
if (!this.isBusy() && !this.updateEvent()) {
switch (this._phase) {
case 'start':
this.startInput();
break;
case 'turn':
this.updateTurn();
break;
case 'action':
this.updateAction();
break;
case 'turnEnd':
this.updateTurnEnd();
break;
case 'battleEnd':
this.updateBattleEnd();
break;
}
}
};



In this I can see that the "BattleManager" keeps track of the case 'turn' but I'm unsure of how to call for this info. Is it as simple as "if BattleManager.turn = x" or do I need to alter this process to export the result to a global variable each turn that I can then call and then alter the battleEnd to reset the variables value to zero?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
That is not the turn count - it is the battle phase, which is a different thing.


What you are looking for is $gameTroop.turnCount()
 
Last edited by a moderator:

zabuzafreak

Villager
Member
Joined
Oct 30, 2015
Messages
9
Reaction score
0
First Language
English
Oh thank you very much! I really appreciate all the help I've gotten on this forum despite my newb questions.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top