Disappearing Text after buying items

As the title suggests. After buying any item from a shop all the text in the game no longer shows up you can see in the images, before buying a potion then after buying a potion. I'm using the Yanfly shop script and Yanfly text script. (Links to each are below).

BEFORE BUYING A POTION

[IMG]http://i.imgur.com/GNTX64d.png?1[/IMG]

AFTER BUYING POTION AND TALKING TO HIM AGAIN. I did noticed a slim area were the text should be, which I have squared in.

[IMG]http://i.imgur.com/weQ1J5w.png?1[/IMG]

Any help with this would be great!

Here are the script links.

Yanfly Ace message system

https://dl.dropboxusercontent.com/u/17078211/Scripts/YEA/Ace_Message_System.rb

Yanfly Shop screen

https://github.com/Archeia/YEARepo/blob/master/Menu/Ace_Shop_Options.rb

Thanks in advance!
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Doesn't the Yanfly message script use variables to determine size? I bet you've used the same variable for something else, or you have two scripts that use the same variable.
I'm not using any variables for buying items. I don't have any variables on any buy-able items.
I'm not using any variables for buying items. I don't have any variables on any buy-able items.
Wrong - you do use variables, because yanfly's message script uses variables to set the size of the message windows.
Your error is the typical effect that happens when the variables configured in the message system are set to zero by either an event or another script.


Please reconfigure the message system to use different variables and make sure (by correctly naming them) that those variables aren't use for anything else.


By default, Yanfly's message system is configured to use Variables 21 and 22. That is what you have to change
I meant that I was not using control variables in the shop area... But I'll change the script variables and see what happens.

Edit: Okay, it works thank you. It was using a part of the script I wasn't aware of. Thanks for the help.
You should ALWAYS look through ANY scripts you add and see what variables and switches they use. Go into an event editor and name those variables and switches to make sure you don't accidentally use them for something else. And if you go in to name them and they're already named, you need to name OTHER switches instead and change the script to use THOSE switches (and variables) instead of the ones it was set up to use by default.


Using switches/variables for multiple purposes is a common problem if you don't name them and/or use custom scripts. That's usually one of the first things to look at when you have script issues.

Original thread: https://forums.rpgmakerweb.com/threads/disappearing-text-after-buying-items.43931/