1 |
if live_call() |
2 |
return global.live_result; |
3 |
if (waiter == 0) |
4 |
waiter++ |
5 |
if (waiter == 1) |
6 |
{ |
7 |
global.cutscene = true |
8 |
obj_pl.direction = 180 |
9 |
waiter++ |
10 |
} |
11 |
if (waiter == 2) |
12 |
{ |
13 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
14 |
with (msg) |
15 |
{ |
16 |
if (!instance_exists(obj_dialoguebox_dummy)) |
17 |
instance_create(0, 0, obj_dialoguebox_dummy) |
18 |
portrait = true |
19 |
sndfnt = 99 |
20 |
sndfnt_array[0] = 100 |
21 |
sndfnt_array[1] = 99 |
22 |
sndfnt_array[2] = 100 |
23 |
message[0] = "* Are you ready to leave?" |
24 |
message[1] = "* Leave Dalv's house?" |
25 |
prt[0] = 1755 |
26 |
if (outcome == 1 && message_current == 1) |
27 |
{ |
28 |
obj_doorway_blocker_dalvshouse.response = "yes" |
29 |
obj_doorway_blocker_dalvshouse.waiter = 7 |
30 |
message[2] = "* If that's what you want,# I'll lead the way." |
31 |
prt[2] = 1776 |
32 |
sndfnt = 100 |
33 |
} |
34 |
else if (outcome == 2 && message_current == 1) |
35 |
{ |
36 |
obj_doorway_blocker_dalvshouse.response = "no" |
37 |
obj_doorway_blocker_dalvshouse.waiter = 7 |
38 |
message[2] = "* Alright, take as long as# you like." |
39 |
prt[2] = 1776 |
40 |
sndfnt = 100 |
41 |
} |
42 |
if (message_current == 0 || message_current == 2) |
43 |
sndfnt = 100 |
44 |
else |
45 |
{ |
46 |
obj_dalv2.image_index = 0 |
47 |
obj_dalv2.image_speed = 0 |
48 |
sndfnt = 99 |
49 |
} |
50 |
ch_msg = 1 |
51 |
ch[1] = "Yes" |
52 |
ch[2] = "No" |
53 |
} |
54 |
} |
55 |
if (waiter == 5 && (!instance_exists(obj_dialogue))) |
56 |
waiter++ |
57 |
if (waiter == 6) |
58 |
{ |
59 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
60 |
with (msg) |
61 |
{ |
62 |
if (obj_doorway_blocker_dalvshouse.response == "yes") |
63 |
{ |
64 |
portrait = true |
65 |
sndfnt = 100 |
66 |
message[0] = "* If that's what you want,# I'll lead the way." |
67 |
prt[0] = 1776 |
68 |
} |
69 |
else if (obj_doorway_blocker_dalvshouse.response == "no") |
70 |
{ |
71 |
portrait = true |
72 |
sndfnt = 100 |
73 |
message[0] = "* Alright, take as long as# you like." |
74 |
prt[0] = 1776 |
75 |
} |
76 |
} |
77 |
waiter++ |
78 |
} |
79 |
if (waiter >= 7 && waiter <= 8 && (!instance_exists(obj_dialogue))) |
80 |
{ |
81 |
with (obj_dialoguebox_dummy) |
82 |
instance_destroy() |
83 |
if (response == "yes") |
84 |
{ |
85 |
instance_create_depth(obj_pl.x, obj_pl.y, obj_pl.depth, obj_player_npc) |
86 |
obj_pl.image_alpha = 0 |
87 |
waiter = 10 |
88 |
} |
89 |
if (response == "no") |
90 |
{ |
91 |
obj_dalv2.direction = 270 |
92 |
if (obj_dalv2.x == obj_dalv2.default_x_dalvshouse && obj_dalv2.y == obj_dalv2.default_y_dalvshouse) |
93 |
{ |
94 |
if (!instance_exists(obj_player_npc)) |
95 |
instance_create_depth(obj_pl.x, obj_pl.y, obj_pl.depth, obj_player_npc) |
96 |
obj_pl.image_alpha = 0 |
97 |
waiter = 9 |
98 |
} |
99 |
} |
100 |
} |
101 |
if (waiter == 9) |
102 |
{ |
103 |
if cutscene_npc_walk(1168, obj_pl.x, 115, 3, "y", "up") |
104 |
{ |
105 |
user_event_0_activated = false |
106 |
global.cutscene = false |
107 |
waiter = 0 |
108 |
obj_pl.alarm[0] = 1 |
109 |
instance_destroy(obj_player_npc) |
110 |
} |
111 |
} |
112 |
if (waiter == 10) |
113 |
{ |
114 |
if cutscene_npc_walk(1168, obj_pl.x, 115, 3, "y", "up") |
115 |
{ |
116 |
obj_dalv2.destination_x_dalv = 219 |
117 |
obj_dalv2.destination_y_dalv = 90 |
118 |
no_loop_autowalk = false |
119 |
waiter = 11 |
120 |
instance_destroy(obj_player_npc) |
121 |
} |
122 |
} |
123 |
if (waiter == 11) |
124 |
{ |
125 |
if (obj_dalv2.x == obj_dalv2.destination_x_dalv && obj_dalv2.y == obj_dalv2.destination_y_dalv) |
126 |
waiter++ |
127 |
} |
128 |
if (waiter == 12) |
129 |
{ |
130 |
obj_dalv2.destination_x_dalv = 220 |
131 |
obj_dalv2.destination_y_dalv = -40 |
132 |
if (obj_dalv2.x == 220 && obj_dalv2.y <= 20) |
133 |
{ |
134 |
with (obj_pl) |
135 |
{ |
136 |
if (!instance_exists(obj_transition)) |
137 |
{ |
138 |
obj_pl.state = gml_Script_scr_frozen_state |
139 |
alarm[0] |
140 |
trn = instance_create(x, y, obj_transition) |
141 |
trn.newRoom = 36 |
142 |
trn.xx = 156 |
143 |
trn.yy = 530 |
144 |
} |
145 |
} |
146 |
} |
147 |
if (abs(obj_pl.y - obj_dalv2.y) > 40) |
148 |
{ |
149 |
with (obj_pl) |
150 |
{ |
151 |
if (state != gml_Script_scr_autowalk_state) |
152 |
{ |
153 |
autowalk_direction = "up" |
154 |
state = gml_Script_scr_autowalk_state |
155 |
} |
156 |
player_mode = "DalvExit" |
157 |
} |
158 |
} |
159 |
} |
160 |
if (waiter >= 1 && waiter < 11) |
161 |
obj_dalv2.direction = 0 |