1 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
2 |
if (robot_item_number == 0) |
3 |
{ |
4 |
with (msg) |
5 |
{ |
6 |
sndfnt = 108 |
7 |
message[0] = "* Perfect! You made# nothing!" |
8 |
message[1] = "* At least put a LITTLE# effort into this." |
9 |
prt[0] = 384 |
10 |
prt[1] = 382 |
11 |
} |
12 |
if (!global.dialogue_open) |
13 |
instance_destroy() |
14 |
} |
15 |
else |
16 |
{ |
17 |
with (msg) |
18 |
{ |
19 |
sndfnt = 108 |
20 |
message[0] = "* All done?" |
21 |
prt[0] = 370 |
22 |
ch[1] = "Yeah" |
23 |
ch[2] = "Nah" |
24 |
ch_msg = 0 |
25 |
if (outcome == 1) |
26 |
{ |
27 |
switch other.robot_item_number |
28 |
{ |
29 |
case 1: |
30 |
message[1] = "* Outstanding work.# Really." |
31 |
prt[1] = 384 |
32 |
break |
33 |
case 2: |
34 |
message[1] = "* You reeally stretched# yourself on this one,# huh." |
35 |
prt[1] = 382 |
36 |
break |
37 |
case 3: |
38 |
case 4: |
39 |
case 5: |
40 |
message[1] = "* It's simple but# recognizable. Not bad." |
41 |
prt[1] = 377 |
42 |
break |
43 |
case 6: |
44 |
case 7: |
45 |
case 8: |
46 |
message[1] = "* Hmm... It's a little# busy but should work." |
47 |
prt[1] = 370 |
48 |
break |
49 |
case 9: |
50 |
case 10: |
51 |
case 11: |
52 |
message[1] = "* Um, I'm not sure about# this design but okay..." |
53 |
prt[1] = 388 |
54 |
break |
55 |
case 12: |
56 |
message[1] = "* It's uh... something# alright. I'm sure Axis# will love it..." |
57 |
prt[1] = 3754 |
58 |
break |
59 |
} |
60 |
|
61 |
} |
62 |
if (outcome == 2) |
63 |
{ |
64 |
instance_destroy(other) |
65 |
return; |
66 |
} |
67 |
} |
68 |
if (!global.dialogue_open) |
69 |
{ |
70 |
instance_destroy() |
71 |
obj_robot_build_controller.destroy_self = true |
72 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_build_a_bot, 800) |
73 |
} |
74 |
} |