cypressx1, You can put Lua code in [ code] tag's for better readability

Your code is correct, but you must make sure that you have an editor created (D2editor), and that you sometimes invalidate your screen. Also, you should add "top" to your drawString, because now it will be a bit ofscreen:
1
| gc:drawString(Text,0,0,"top") |