how do i make an if statement that call the turn count using script?
If turn count
JS Plugin Requestswhat turn count? And when and where do you want to use the script?
It will really help if you describe what you want to do (in ingame terms) instead of how you want to do something. I can think of several things that your question above would fit, and in at least one of them it can't work like that at all.
It will really help if you describe what you want to do (in ingame terms) instead of how you want to do something. I can think of several things that your question above would fit, and in at least one of them it can't work like that at all.
I want text to be displayed in the enemy window that depends on the turn number, something like
Window_BattleEnemy.prototype.drawItem = function(index) {
this.resetTextColor();
var name = this._enemies[index].name();
var rect = this.itemRectForText(index);
this.drawText(name, rect.x, rect.y, rect.width);
if (???){
this.drawText("even", rect.x , rect.y + 35, rect.width);
}
};
I'm not sure if this helps but I use this variable if the enemy is at a certain turn
$gameTroop._turnCount
Edit:
I use it in a very limited circumstance in my game so I'm probably not the best person to answer! hopefully this info can help you with your search on here or on google lol. 🙂
$gameTroop._turnCount
Edit:
I use it in a very limited circumstance in my game so I'm probably not the best person to answer! hopefully this info can help you with your search on here or on google lol. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/if-turn-count.121565/