X doesn't work either. You're calling Window_ChoiceList.prototype.updatePlacement, which is not a static function. Therefore you can't call it as a prototype function, you have to call it in relation to the particular choice list window. I recommend you to go through a C++ tutorial to learn the basics of object oriented programming.
So now the three functions are the same just without
Window_ChoiceList.prototype.updatePlacement
line?
So now you are setting the window's X to 155 and Y to 425. That's what is happening.
Man, i have no idea... I made several snippets in my game with windows. When i have this error, sometimes i have to edit the rpg maker file instead of made a snippet. And then it work.
Watching the code, I see there's something different for other Windows:
Case 0
Case 1
Case 2
I think this has a relation with the position of the message box(center, left, right)
So I guess you have to figure that out.
Maybe the y position is defined through the position of the message box.
Or
You can use SRD super tools.js
And adjust the Windows with that.
No, it is not relative to the variables.
You set the variables to certain values and then call a function called Poppie.eleCalc.BattleChoiceOn().
This function sets the X and Y to values defined exactly in that function.
I think you wanted to make the positioning relative by the updatePlacement method, since that contains the two codes that would make the positioning relative to the variables. However, you made a mistake that instead of calling the window's method you called the prototype method, so you naturally got the error.
So if you want, edit the BattleChoiceOn function to this:
black_custom_window.x = $gameVariables.value(19);
black_custom_window.y = $gameVariables.value(20);
and it should work as you intended.
Oh, I see, so the black_custom_window is that window that says "What will you do?". It makes sense now.
In that case my previous statement is valid. The first code had the right thought, but not the right execution. Instead of Window_Choicelist.prototype you need to know the name of that exact window object. You can find it via the dev tools, should be one of the windows inside the window layer inside SceneManager._scene.
Oh, I see. Nevermind that custom black window then. Revert the game code back to what it was in the first post. Then find the name of that particular choice window and substitute Window_Choicelist.prototype for that name.
Type SceneManager._scene in the console (f8 or f12 in game) and look for something that has Window_ChoiceList next to it in it. It could be _choiceWindow or something, in which case the name would be
SceneManager._scene._choiceWindow
Yup.
Try
SceneManager._scene._messageWindow._choiceWindow.updatePlacement();
instead of Window_ChoiceList.prototype.updatePlacement();
in the code in your first post.
Have you ever messed around with the first window using the super tools engine? If yes, it might be an option. If not, then maybe it's a different window. It's all so messy that it's stopping to make any sense to me.
Well, it's officially gotten weird. If I could take a look at the project itself, I could explore. Without it I can only guess. Is the item guard attack skill run window a custom created one or just a default choice window?