1 |
switch scene |
2 |
{ |
3 |
case 0: |
4 |
if (scr_interactscr_interactfunction scr_interact() //gml_Script_scr_interact
{
if (distance_to_object(obj_pl) < 20 && obj_pl.state == gml_Script_scr_normal_state)
{
var pl_dir = obj_pl.direction
var pl_x = 0
var pl_y = 0
var check_distance_x = 0
var check_distance_y = 0
switch pl_dir
{
case 0:
pl_x = obj_pl.bbox_right
pl_y = obj_pl.bbox_top + 1
check_distance_x = 20
break
case 180:
pl_x = obj_pl.bbox_left
pl_y = obj_pl.bbox_top + 1
check_distance_x = -20
break
case 90:
pl_x = obj_pl.x
pl_y = obj_pl.bbox_top
check_distance_y = -20
break
case 270:
pl_x = obj_pl.x
pl_y = obj_pl.bbox_bottom
check_distance_y = 20
break
}
if collision_line_first(pl_x, pl_y, (pl_x + check_distance_x), (pl_y + check_distance_y), id, false, false)
return true;
}
} () && keyboard_multicheck_pressed(0)) |
5 |
cutscene_advance() |
6 |
break |
7 |
case 1: |
8 |
if (global.sworks_flag[28] >= 1) |
9 |
{ |
10 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
11 |
with (msg) |
12 |
{ |
13 |
message[0] = "* (You hear the whirring of# cooling fans inside the hot# console.) " |
14 |
message[1] = "* (Best leave it be.)" |
15 |
} |
16 |
scene = 0 |
17 |
return; |
18 |
} |
19 |
if (global.route == 3) |
20 |
{ |
21 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
22 |
with (msg) |
23 |
message[0] = "* (The computer was recently# used.)" |
24 |
scene = 0 |
25 |
} |
26 |
else |
27 |
{ |
28 |
cutscene_dialogue() |
29 |
with (msg) |
30 |
{ |
31 |
message[0] = "* (A daunting array of screens# and buttons lie before you.)" |
32 |
message[1] = "* (You press one of the# buttons.)" |
33 |
} |
34 |
} |
35 |
break |
36 |
case 2: |
37 |
cutscene_sfx_play(snd_beep, 1) |
38 |
break |
39 |
case 3: |
40 |
cutscene_wait(1) |
41 |
break |
42 |
case 4: |
43 |
if (!instance_exists(obj_dialogue_steamworks_33)) |
44 |
{ |
45 |
msg = instance_create_depth(0, 0, -9999, obj_dialogue_steamworks_33) |
46 |
msg.draw_alpha = 0 |
47 |
} |
48 |
with (msg) |
49 |
{ |
50 |
ch_msg = 2 |
51 |
ch[1] = "Info" |
52 |
ch[2] = "Docs" |
53 |
ch[3] = "Pictures" |
54 |
ch[4] = "Games" |
55 |
ch[5] = "Settings" |
56 |
message[0] = "* Robotics Control Status:# Functioning at 78%." |
57 |
message[1] = "* Awaiting input . . ." |
58 |
message[2] = "* MAIN DIRECTORY:" |
59 |
switch outcome |
60 |
{ |
61 |
case 1: |
62 |
message[3] = "* Steamworks Station R# System" |
63 |
message[4] = "* OS Delta - Version 1.4 -# Installed X/X/20XX" |
64 |
message[5] = "* Processor - Ultra McTurbo# Core 180 - 0.5GHz" |
65 |
message[6] = "* Installed Physical Memory -# 500 MB" |
66 |
message[7] = "* Graphics Card - ERROR" |
67 |
break |
68 |
case 2: |
69 |
message[3] = "* ERROR - Information# classified." |
70 |
break |
71 |
case 3: |
72 |
message[3] = "* Loading . . ." |
73 |
message[4] = "* Estimated time remaining:# 9 hours . . ." |
74 |
break |
75 |
case 4: |
76 |
message[3] = "* Loading . . ." |
77 |
message[4] = "* Feature BLOCKED." |
78 |
message[5] = "* Custom message: Trying to# play video games on# the job? " |
79 |
message[6] = "* Please report to the head# office. We have a# pink-colored gift for you." |
80 |
break |
81 |
case 5: |
82 |
message_reset = true |
83 |
other.scene = 5 |
84 |
break |
85 |
} |
86 |
|
87 |
} |
88 |
if (!global.dialogue_open) |
89 |
{ |
90 |
msg.message_reset = true |
91 |
cutscene_advance(4) |
92 |
return true; |
93 |
} |
94 |
break |
95 |
case 5: |
96 |
with (msg) |
97 |
{ |
98 |
ch_msg = 0 |
99 |
ch[1] = "Emergency Shutdown" |
100 |
ch[2] = "Back" |
101 |
message[0] = "* Select your option." |
102 |
switch outcome |
103 |
{ |
104 |
case 1: |
105 |
other.scene = 6 |
106 |
message_reset = true |
107 |
break |
108 |
case 2: |
109 |
other.scene = 4 |
110 |
message_reset = true |
111 |
break |
112 |
} |
113 |
|
114 |
} |
115 |
break |
116 |
case 6: |
117 |
with (msg) |
118 |
{ |
119 |
ch_msg = 0 |
120 |
ch[1] = "Yes" |
121 |
ch[2] = "No" |
122 |
message[0] = "* Shut down all helper bots# within the vicinity?" |
123 |
switch outcome |
124 |
{ |
125 |
case 1: |
126 |
message[1] = "* Attempting shut down . . ." |
127 |
message[2] = "* . . ." |
128 |
message[3] = "* ERROR: Could not complete# task." |
129 |
message[4] = "* . . ." |
130 |
message[5] = "* Just kidding ;)" |
131 |
message[6] = "* Emergency shutdown# complete." |
132 |
other.scene = 7 |
133 |
break |
134 |
case 2: |
135 |
message[1] = "* Why did you select this# option then?" |
136 |
break |
137 |
} |
138 |
|
139 |
} |
140 |
if (!global.dialogue_open) |
141 |
{ |
142 |
msg.message_reset = true |
143 |
cutscene_advance(5) |
144 |
} |
145 |
break |
146 |
case 7: |
147 |
if global.dialogue_open |
148 |
return; |
149 |
msg.message_reset = true |
150 |
msg.fade_out = true |
151 |
cutscene_advance() |
152 |
break |
153 |
case 8: |
154 |
if instance_exists(obj_dialogue_steamworks_33) |
155 |
return; |
156 |
cutscene_advance() |
157 |
break |
158 |
case 9: |
159 |
cutscene_wait(0.5) |
160 |
break |
161 |
case 10: |
162 |
obj_steamworks_33_bridge.active = true |
163 |
audio_sound_gain(obj_radio.current_song, 0, 500) |
164 |
cutscene_advance() |
165 |
break |
166 |
case 11: |
167 |
if (obj_steamworks_33_bridge.active == false) |
168 |
cutscene_advance() |
169 |
break |
170 |
case 12: |
171 |
scr_cutscene_end() |
172 |
audio_sound_gain(obj_radio.current_song, 1, 500) |
173 |
cutscene_advance() |
174 |
instance_destroy(105663) |
175 |
ds_list_clear(global.encounter_list) |
176 |
global.sworks_flag[28] = 1 |
177 |
break |
178 |
} |