RPG Maker Forums

so im editing the JS for a Yanfly script, and within it is the following line:

for (var i = 1; i <= 10; i++) {

this line is being used to create a dynamic list of variables to display. allowing for the list to be however big or small the user wants, however, im trying to create a Parameter that counts how many variables are currently being displayed since the number changes throughout the game. is there a line i can insert after this one that basically says "if 'i' is increased by 1, then increase this parameter by 1'? the idea being that by the end of the dynamic lists creation the parameter will be equal to the variable.

im not really asking for help with the script, just this algorithm, so i beleive this to be the right forum, if not, thank you moderator for moving it over! also, if context is needed for the algorithm, its in Yanfly's MainMenuVariable script. line 329

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

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.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top