Add Variable Bug

● ARCHIVED · READ-ONLY
Started by frederik850 6 posts View original ↗
  1. I have a problem with adding values to variables and display them. Everytime I add a value to the variable the window size changes. The first time it looks normal, but after I took two books it looks like the last image I added. I think everything I did was right. So, is it a bug, or is something else wrong? Also, it's not possible one of my scripts caused the problem, cause I copied a map from the variables guide and it worked. 

    book.png

    book1.png

    book2.png
  2. Do you have any scripts installed?
  3. Like I said, I have a lot of scripts, but these didn't cause the issue. I copied a map from the variables and that worked perfectly. I also placed every script under the main section one by one to see if some script did cause the problem, but that wasn't the case.
  4. You have yanfly's message system installed and forgot to name and configure the variables for it - that's why now that specific variable has two functions: the one you're using it for, and the one Yanfly's script is using it for.


    You cannot simply assume that a script functions without configuration once you placed it into the script manager, you ALWAYS have to check if it uses switches or variables to allow configurations by events, and if yes you have to make sure that those variables are not used for anything else (usually by first setting the variable number in the script to a still unused variable, and then naming that variable something like "yanfly windows size" to prevent yourself from using it for something else after you added the script.


    And do not only correct that for Yanfly's message system, check all your scripts for similiar things (some scripts configure through variables 99/100, you'll get similiar problems if you ever get to those numbers without reserving them).
  5. Thanks alot! I didn't realize scripts used variables for events. I'll check the other ones as well.
  6. This is why scripts have headers with instructions. ;)