1 |
event_inherited(); |
2 |
if (interact == 1) |
3 |
{ |
4 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
5 |
switch (npc_flag) |
6 |
{ |
7 |
case 0: |
8 |
with (msg) |
9 |
{ |
10 |
portrait = false; |
11 |
message[0] = "* Huumpf! 238..."; |
12 |
message[1] = "* Huumpf! 239..."; |
13 |
message[2] = "* At this pace, Ice Wolf# is ready for new job# in no time!"; |
14 |
} |
15 |
npc_flag += 1; |
16 |
break; |
17 |
case 1: |
18 |
with (msg) |
19 |
{ |
20 |
portrait = false; |
21 |
message[0] = "* New job is very important# for Ice Wolf."; |
22 |
message[1] = "* Ice Wolf needs money for# new pants."; |
23 |
} |
24 |
npc_flag += 1; |
25 |
break; |
26 |
case 2: |
27 |
with (msg) |
28 |
{ |
29 |
portrait = false; |
30 |
sndfnt = 99; |
31 |
message[0] = "* Huumpf!"; |
32 |
} |
33 |
break; |
34 |
} |
35 |
} |
36 |
image_speed = 0.2; |
37 |
if (floor(image_index) == 3) |
38 |
obj_ice_blocks.image_index = 1; |
39 |
else |
40 |
obj_ice_blocks.image_index = 0; |
41 |
if (floor(image_index) == 9) |
42 |
{ |
43 |
if (!alarm[0]) |
44 |
{ |
45 |
alarm[0] = 10; |
46 |
instance_create(x, y - 40, obj_ice_cube); |
47 |
} |
48 |
} |