Yeah, put this in the Global Script, near the top, before you call it at any point.
You should also put this in the Global Script Header (the ASH file that goes with the global script):
Code: AGS
And then you'd be able to call this function in rooms as well.
You should also put this in the Global Script Header (the ASH file that goes with the global script):
import function SayAnywhere (this Character*, String text);
And then you'd be able to call this function in rooms as well.