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:
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?
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:
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?