The code seems fine. But you wanna add i<=100 in the first line. Btw the message window's x is this: SceneManager._scene._messageWindow.x
Your code will add 4950 (99th triangular number) to "this" object's x. If it's a window then that probably means it'll go way off-screen. 😅
For the effect you're seeking, you should identify the appropriate update routine (called once per frame) and put your increment code in there. If you want it to happen when the window opens, for instance, you might try aliasing Window_Message.prototype.updateOpen. And remember to be careful of what you're adding/setting the coordinate to~ 😛