RPG Maker Forums

Hello! I'm failing horribly at Javascript and really need your kind help.

I'm trying to make a choice window with options that will change with the press of a button.
In order to do this, I set up my "show choice" command to have variables as values, like this:

◆Show Choices:\v[99], \v[100] (Window, Right, #1, #2)
:When \v[99]

:When \v[100]

:End
I have a parallel event that changes the variables whenever I press the key and console.logs the new value, so I know that everything works. So far, so good.
My problem: the list doesn't update.

I know that I in order to do this, I should refresh the command window, so it will re-draw the choices again. But I can't seem to find the right command! I've tried Window_choicelist.refresh(); choiceWindow.refresh(); $gameScreen.update and assorted variations with no avail.
What am I doing wrong?

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,476
Members
137,824
Latest member
dobratemporal
Top