| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
draw_set_alpha(draw_alpha); |
| 4 |
if (message_current > (array_length_1d(prt) - 1) || prt[message_current] == 0) |
| 5 |
portrait = false; |
| 6 |
else |
| 7 |
portrait = true; |
| 8 |
var line_sep = 18; |
| 9 |
draw_set_font(dialogue_font); |
| 10 |
draw_set_color(c_white); |
| 11 |
draw_set_halign(fa_left); |
| 12 |
message_actual = string_copy(message[message_current], 0, cutoff); |
| 13 |
draw_text_ext_transformed(xx + random_range(-0.5, 0.5), yy + random_range(-0.5, 0.5) + 10, string_hash_to_newline(message_actual), line_sep, -1, 1, 1, 0); |
| 14 |
if (color == true) |
| 15 |
{ |
| 16 |
if (color_set == false) |
| 17 |
{ |
| 18 |
for (var i = 0; i < (array_length_1d(message) - 1); i++) |
| 19 |
{ |
| 20 |
var len = array_length_2d(message_col, i); |
| 21 |
if (len == 0) |
| 22 |
{ |
| 23 |
message_col[i][0] = ""; |
| 24 |
} |
| 25 |
else if (len > 0) |
| 26 |
{ |
| 27 |
for (var j = 0; j < (array_length_1d(col_modif) - 1); j++) |
| 28 |
{ |
| 29 |
if (j < array_length_2d(message_col, i) && message_col[i][j] == 0) |
| 30 |
message_col[i][j] = ""; |
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
color_set = true; |
| 35 |
} |
| 36 |
for (var j = 0; j < array_length_2d(message_col, message_current); j++) |
| 37 |
{ |
| 38 |
message_actual_col[j] = string_copy(message_col[message_current][j], 0, cutoff); |
| 39 |
draw_set_color(col_modif[j]); |
| 40 |
draw_text_ext(xx, yy + 10, string_hash_to_newline(message_actual_col[j]), line_sep, -1); |
| 41 |
} |
| 42 |
} |
| 43 |
draw_set_color(c_white); |
| 44 |
if (dialogue_is_minishop == true) |
| 45 |
{ |
| 46 |
var minishop_box_xx = 204; |
| 47 |
var minishop_box_yy = 92; |
| 48 |
draw_set_color(c_white); |
| 49 |
draw_rectangle(minishop_box_xx, minishop_box_yy, minishop_box_xx + 100, minishop_box_yy + 53, false); |
| 50 |
draw_set_color(c_black); |
| 51 |
draw_rectangle(minishop_box_xx + 3, minishop_box_yy + 3, (minishop_box_xx + 100) - 3, (minishop_box_yy + 53) - 3, false); |
| 52 |
draw_set_font(fnt_battle); |
| 53 |
draw_set_color(c_white); |
| 54 |
var item_count; |
| 55 |
for (item_count = 1; item_count <= 8; item_count++) |
| 56 |
{ |
| 57 |
if (global.item_slot[item_count] == "Nothing") |
| 58 |
break; |
| 59 |
} |
| 60 |
draw_text(217, 100, string_hash_to_newline("$ - " + string(global.player_gold) + "#SPACE - " + string(item_count - 1) + "/8")); |
| 61 |
} |
| 62 |
var width1 = string_width(string_hash_to_newline(ch[1])) * 0.5; |
| 63 |
var width2 = string_width(string_hash_to_newline(ch[2])) * 0.5; |
| 64 |
xpos1 = xx - width1; |
| 65 |
xpos2 = (xpos1 + 122) - width2; |
| 66 |
xpos3 = xpos1; |
| 67 |
xpos4 = xpos2; |
| 68 |
draw_set_alpha(1); |
| 69 |
draw_set_halign(fa_left); |