#define scr_addline //name = scr_addline //maker = IsmAvatar //purpose = adds a line to texty (your dialogue box) //argument0 = the new text to be added //argument1 = the color for the text to be displayed in for (m = 3; m > 0 ; m -= 1) { global.texty[m] = global.texty[m-1] global.textcol[m] = global.textcol[m-1] } global.texty[0] = argument0 global.textcol[0] = argument1 #define scr_floodtexty //name = scr_floodtexty //maker = IsmAvatar //purpose = floods texty (fills it up with the same thing) //argument0 = the text to flood the box with. //An empty string clears the box //argument1 = the color to flood the box with. for (m = 0; m < 4 ; m += 1) { global.texty[m] = argument0 global.textcol[m] = argument1 } #define scr_drawtexty //define the corner locations left = argument0 top = argument1 right = argument2 bottom = argument3 //draw the chat boxes font_name = "courier" font_size = 12 font_align = fa_left brush_color = c_black pen_color = c_fuchsia draw_rectangle(left,top,right,bottom-24) draw_rectangle(left,bottom-24,right,bottom) //draw the chat font_color = c_lime if show_bar = 1 draw_text(left+4,top-23,keyboard_string +"|") else draw_text(left+4,top-23,keyboard_string) for (t=3; t>-1; t-=1) { font_color = global.textcol[t] draw_text(left+4,top-23+((3-t)*16),global.texty[t]) }