1 | event_inherited() |
2 | if interact |
3 | { |
4 | scr_text() |
5 | is_talking = 1 |
6 | switch npc_flag |
7 | { |
8 | case 0: |
9 | with (msg) |
10 | { |
11 | portrait = false |
12 | sndfnt = 99 |
13 | message[0] = "* Can you believe I'm STILL# mining? " |
14 | message[1] = "* I'm just THAT committed to my# job!! " |
15 | message[2] = "* ... " |
16 | message[3] = "* ...You think Angie heard that?" |
17 | } |
18 | npc_flag++ |
19 | break |
20 | case 1: |
21 | with (msg) |
22 | { |
23 | portrait = false |
24 | sndfnt = 99 |
25 | message[0] = "* I am confined to these brown# walls forever!!!!!" |
26 | } |
27 | break |
28 | } |
29 | |
30 | } |
31 | if (!is_talking) |
32 | { |
33 | sprite_index = spr_miner_stable |
34 | image_speed = 0.4 |
35 | if (floor(image_index == 0) || ceil(image_index) == 6) |
36 | { |
37 | if point_in_rectangle(x, y, __view_get((0 << 0), 0), __view_get((1 << 0), 0), ((__view_get((0 << 0), 0)) + (__view_get((2 << 0), 0))), ((__view_get((1 << 0), 0)) + (__view_get((3 << 0), 0)))) |
38 | { |
39 | if ((!audio_is_playing(snd_pickaxe_ding)) && (!audio_is_playing(snd_pickaxe_ding2))) |
40 | audio_play_sound(choose(268, 269), 1, 0) |
41 | } |
42 | } |
43 | } |
44 | else |
45 | { |
46 | sprite_index = spr_miner_stable_talk |
47 | image_speed = 0.4 |
48 | } |