1 | if (con == 0) |
2 | { |
3 | con = 1; |
4 | alarm[4] = 40; |
5 | } |
6 | if (con == 1) |
7 | global.interact = 1; |
8 | if (con == 2) |
9 | { |
10 | sndplay = 0; |
11 | if (snd_is_playing(global.currentsong[1])) |
12 | { |
13 | sndplay = 1; |
14 | snd_pause(global.currentsong[1]); |
15 | } |
16 | snd_play(snd_smile); |
17 | con = 3; |
18 | alarm[4] = 200; |
19 | } |
20 | if (con == 4) |
21 | { |
22 | with (obj_dialoguer) |
23 | instance_destroy(); |
24 | with (obj_writer) |
25 | instance_destroy(); |
26 | con = 7; |
27 | } |
28 | if (con == 7) |
29 | { |
30 | snd_stop(snd_smile); |
31 | if (sndplay == 1) |
32 | snd_resume(global.currentsong[1]); |
33 | global.msg[0] = stringsetloc( |
34 | instance_create(0, 0, obj_dialoguer); |
35 | con = 5; |
36 | global.interact = 6; |
37 | instance_destroy(); |
38 | } |