Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Incase you didn't figure this out, to fix the error you just need to put the BUBBLETEXTBASE and BUBBLETEXTSHADOW near the top of the SpriteWindow script. I put mine just below DARKTEXTSHADOW. Hope this helps (: