Ruby script bug

I currently am using Ruby Script for the name text box. However, I also am wanting to use Save points instead of letting the player save anywhere. The issue I am having is once the save point comes into play for the first time it changes my text box. I attached a file that show the same text box side by side of the issue. The Event I am using for the event is also a file. Can someone please help me out so I can fix this. Either with another script for Name text boxes or even a different script to set up a save point. Thanks

Script bug.png

Script Save point.png
What script are you using???
 
Here is the scrpit

script.txt
and the event that calls the message?
Basically, When I step onto the map where the save point is located (the link of that script is linked above) and the script for the name text box above the actors picture, the text window become vertical. Even when I leave the map that has the save point and talk to another event on a different map the text box does not fix itself. I will link a picture that shows the script works before you get the the save point. Now, if i do not use the script for the text name box it fixes the issue. If there is another script that is specific just for the text name box I would use it. 

Script working.png
the script uses Variable 21 and 22 for it's rows and width on the config part, so since ur modifying those on that parallel process, it modifies the window... you need to reconfigure your parallel process to use different variables, or the script to use different variables
How else would you write the Save point that only allows you to save only when your standing on top of it?
that is not a problem bro... instead of variables 21 and 22, just use another set of variables like 25 and 26...


or make an event on that point that is touch activated, that enables the save menu... then make events around it, also touch events, that disables the save menu... that way you won't need the parallel process event...
Well, Changing the Variables did not help the fact of it happening.  It does appear that it only happens when I step on the Save point. Prior to doing so the text window stays the same. But after doing so it changes it vertical.  The only bad thing of  making it a event touch to fix the problem now, I may run into it again later on in my game when it come to puzzles that do require variables. It seem that the checking of the "X" and "Y" variables is causing the issues. But than again I no nearly zero coding experience.
which variables have you changed? Also, since Variables 21 and 22 are used by the script to determine row and width, make sure that you set them first when you start your game to whatever row and width you want the windows to have... and make sure that nothing else is running and uses those variables...


please post the new set-up...

The only bad thing of making it a event touch to fix the problem now, I may run into it again later on in my game when it come to puzzles that do require variables.
Not as long as you use different variables for those puzzles... and not the ones that ur already using...


PS: If you're not planning on changing window size at any point of the game, you can set the row and width variables to 0 on Yanfly's script...
It did Fix the problem. I ended up only changing half of the variables. Thanks for dealing with my ignorance of coding  😀 . If I rename Variable 21 and 22 would that mess up the script? I would like to do so so I know not to use them.
Nope... variable names (for the Game Variables) are just there for you to easily remember what they are used for... they are accessed via their ID (the number) the names doesn't really matter... XD
Thanks, You have been very helpful.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ruby-script-bug.22673/