1 |
if (instance_exists(writer) == 0) |
2 |
{ |
3 |
instance_destroy(); |
4 |
} |
5 |
else if (control_check_pressed(1)) |
6 |
{ |
7 |
if (writer.halt == 0) |
8 |
{ |
9 |
if (global.typer != 10) |
10 |
{ |
11 |
global.flag[25 dialogues_skipped] += 1; |
12 |
writer.stringpos = string_length(writer.originalstring); |
13 |
} |
14 |
} |
15 |
control_clear(1); |
16 |
} |
17 |
if (global.facechange == 2) |
18 |
global.facechange = 0; |
19 |
if (global.facechange == 1 && global.facechoice == 0) |
20 |
{ |
21 |
if (instance_exists(writer)) |
22 |
{ |
23 |
writer.x = xx + 30; |
24 |
writer.writingx = writer.x; |
25 |
writer.writingxend = writer.writingxend_base; |
26 |
} |
27 |
if (instance_exists(obj_face) == 1) |
28 |
{ |
29 |
with (obj_face) |
30 |
instance_destroy(); |
31 |
} |
32 |
global.facechange = 2; |
33 |
} |
34 |
if (global.facechange == 1) |
35 |
{ |
36 |
if (instance_exists(writer)) |
37 |
{ |
38 |
writer.x = xx + 68; |
39 |
writer.writingx = writer.x + 20; |
40 |
writer.writingxend = writer.writingxend_base; |
41 |
if (global.facechoice == 1) |
42 |
{ |
43 |
if (!instance_exists(obj_face_torieltalk) && !instance_exists(obj_face_torielblink)) |
44 |
script_execute(scr_facechoice); |
45 |
} |
46 |
if (global.facechoice == 2) |
47 |
{ |
48 |
if (!instance_exists(obj_face_floweytalk)) |
49 |
script_execute(scr_facechoice); |
50 |
} |
51 |
if (global.facechoice == 3) |
52 |
{ |
53 |
if (!instance_exists(obj_face_sans)) |
54 |
script_execute(scr_facechoice); |
55 |
} |
56 |
if (global.facechoice == 4) |
57 |
{ |
58 |
if (global.language == "ja") |
59 |
{ |
60 |
writer.x = xx + 10; |
61 |
writer.writingx = xx + 30; |
62 |
writer.writingxend = writer.writingxend_base - 38; |
63 |
} |
64 |
if (!instance_exists(obj_face_papyrus)) |
65 |
script_execute(scr_facechoice); |
66 |
} |
67 |
if (global.facechoice == 5) |
68 |
{ |
69 |
if (!instance_exists(obj_face_undyne)) |
70 |
script_execute(scr_facechoice); |
71 |
} |
72 |
if (global.facechoice == 6) |
73 |
{ |
74 |
if (!instance_exists(obj_face_alphys)) |
75 |
script_execute(scr_facechoice); |
76 |
} |
77 |
if (global.facechoice == 7) |
78 |
{ |
79 |
if (!instance_exists(obj_face_asgore)) |
80 |
script_execute(scr_facechoice); |
81 |
} |
82 |
if (global.facechoice == 8) |
83 |
{ |
84 |
if (!instance_exists(obj_face_mettaton)) |
85 |
script_execute(scr_facechoice); |
86 |
} |
87 |
if (global.facechoice == 9) |
88 |
{ |
89 |
if (!instance_exists(obj_face_asriel)) |
90 |
script_execute(scr_facechoice); |
91 |
} |
92 |
global.facechange = 2; |
93 |
} |
94 |
} |