// log_update(str,width) // // str - string to append to the log // width - width of area (in pixels) log will be displayed var str, logw, i, loop; str=argument0; logw=argument1; loop=true; // Escape number signs to prevent unwanted newlines str=string_replace_all(str,"#","\#"); while (loop){ if(string_width(str)>logw){ // The string is too long to be displayed on one line. if(string_pos(" ",str)&&(string_width(string_copy(str,1,string_pos(" ",str)))