If turn count

ginfubawuba

Villager
Member
Joined
Dec 1, 2017
Messages
26
Reaction score
5
First Language
English
Primarily Uses
RMMV
how do i make an if statement that call the turn count using script?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,430
Reaction score
7,711
First Language
German
Primarily Uses
RMMV
what 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.
 

ginfubawuba

Villager
Member
Joined
Dec 1, 2017
Messages
26
Reaction score
5
First Language
English
Primarily Uses
RMMV
what 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.
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);
}

};
 

minnty200

Veteran
Veteran
Joined
May 2, 2020
Messages
52
Reaction score
18
First Language
eng
Primarily Uses
RMMV
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. :)
 
Last edited:

ginfubawuba

Villager
Member
Joined
Dec 1, 2017
Messages
26
Reaction score
5
First Language
English
Primarily Uses
RMMV
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. :)
Sorry for the late reply, but this worked!

Thank you for the help.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,456
Members
137,821
Latest member
Capterson
Top