1 |
event_inherited() |
2 |
if (interact == 1) |
3 |
{ |
4 |
scr_textscr_textfunction scr_text() //gml_Script_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 |
} |
37 |
image_speed = 0.2 |
38 |
if (floor(image_index) == 3) |
39 |
obj_ice_blocks.image_index = 1 |
40 |
else |
41 |
obj_ice_blocks.image_index = 0 |
42 |
if (floor(image_index) == 9) |
43 |
{ |
44 |
if (!alarm[0]) |
45 |
{ |
46 |
alarm[0] = 10 |
47 |
instance_create(x, (y - 40), obj_ice_cube) |
48 |
} |
49 |
} |