

but we are not halting execution, since we can carry on in some capacity printError ( "gmcp values for this thing went missing, will carry on using defaults but you should tell somebody about this.", true ) - print an error message to the error console for troubleshooting purposes. Make sure this is something important enough it might make it to the main window as a big red error. HAX?!" ) - Something bad happened, for sure, but your script can recover. printError ( "Your maxhp is below your currenthp and our game doesn't allow for that. this is similar to debugc except it include more information on the place it was called from - and will show up in red and echo to the main console if the option for errors to echo there is selected. print an error message but do not include extra stack information or halt execution. Includes stack trace if showStackTrace is included and not nil or false. Does not echo to the debug window or the main console. local width, height = getMainWindowSize () createLabel ( "messageBox" ,( width / 2 ) - 300 ,( height / 2 ) - 100, 250, 150, 1 ) resizeWindow ( "messageBox", 500, 70 ) moveWindow ( "messageBox", ( width / 2 ) - 300 ,( height / 2 ) - 100 ) setBackgroundColor ( "messageBox", 255, 204, 0, 200 ) echo ( "messageBox", ] ) printDebug printDebug(msg, ) Prints a debug message in green to the error console in the script editor only. Because the background color has a transparency level of 150 (0-255, with 0 being completely transparent - and 255 opaque) the background text can still be read through. a label example - This example creates a transparent overlay message box to show a big warning message "You are under attack!" in the middle - of the screen.
