Script Erroring

So I have the script Hover Alerts by modern algebra, and I am getting an error after the item pickup alert has come up, as shown:


[IMG]https://i.gyazo.com/ab3495e294b790a8466f1abbddf799e9.png[/IMG]


I managed to stop it from erroring by changing like 265 from:


@hover_alert = @hover_alert_queue.empty? ? nil : @hover_alert_queue.shift


to


@hover_alert = (@hover_alert_queue.nil? || @hover_alert_queue.empty?) ? nil : @hover_alert_queue.shift


but this removes the alert, and I would like the alert to show.


The code I have is from the demo he provided, in which it worked, and everything else it is intended to do works.


Here's the full code:


http://pastebin.com/9H11VMs0
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Did you start a new game after adding the script, or did you resume a game you'd previously saved?  If the latter, start a new game and see if the issue continues.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Did you start a new game after adding the script, or did you resume a game you'd previously saved?  If the latter, start a new game and see if the issue continues.





 


Sorry!


Yeah, when I start a new game I don't get the error but the pop-up doesn't show either.
remove your modification and set the script back to the way it was.  Then start a new game and see if it works.


Please provide a link to the original script so we can see the author's comments about it and any questions other people may have had.
remove your modification and set the script back to the way it was.  Then start a new game and see if it works.


Please provide a link to the original script so we can see the author's comments about it and any questions other people may have had.





 



I did, the original script is here: http://rmrk.net/index.php?topic=46911.0
Looking at the code, I can't believe you started a new game after adding the script.  When you start a new game, that variable is created.  The only way the variable would not be there is if you had loaded a game that was initially started prior to adding the script.

Original thread: https://forums.rpgmakerweb.com/threads/script-erroring.62733/