1 |
if (global.dunes_flag[2] == 0) |
2 |
{ |
3 |
if (obj_sandstorm_controller.storm_active == true) |
4 |
{ |
5 |
if (sprite_index != spr_fan_fan_windy) |
6 |
{ |
7 |
sprite_index = spr_fan_fan_windy |
8 |
image_speed = 0.4 |
9 |
image_index = 0 |
10 |
} |
11 |
else if (image_index > 8) |
12 |
image_index = 5 |
13 |
} |
14 |
else if (sprite_index == spr_fan_fan_windy && on_animation_end()) |
15 |
{ |
16 |
sprite_index = spr_fan_fan |
17 |
image_index = 0 |
18 |
image_speed = 0 |
19 |
} |
20 |
} |
21 |
else if (sprite_index == spr_fan_fan_windy) |
22 |
{ |
23 |
sprite_index = spr_fan_fan |
24 |
image_index = 0 |
25 |
image_speed = 0 |
26 |
} |
27 |
if (sprite_index != spr_fan_fan) |
28 |
return; |
29 |
event_inherited() |
30 |
if interact |
31 |
{ |
32 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
33 |
is_talking = true |
34 |
if (global.dunes_flag[2] == 0) |
35 |
{ |
36 |
if (obj_sandstorm_controller.storm_active == true) |
37 |
msg.message[0] = "* Aa-aa-aa-hh-hh-hh!" |
38 |
else |
39 |
msg.message[0] = "* So... hot..." |
40 |
} |
41 |
else |
42 |
{ |
43 |
switch npc_flag |
44 |
{ |
45 |
case 0: |
46 |
with (msg) |
47 |
{ |
48 |
portrait = false |
49 |
sndfnt = 99 |
50 |
message[0] = "* Bro, what's your damage?" |
51 |
message[1] = "* Can't a monster cool off every# now and then?" |
52 |
message[2] = "* You're such a killjoy, bro." |
53 |
} |
54 |
npc_flag = 1 |
55 |
break |
56 |
case 1: |
57 |
with (msg) |
58 |
{ |
59 |
portrait = false |
60 |
sndfnt = 99 |
61 |
message[0] = "* Sorry, I guess." |
62 |
message[1] = "* I get cranky when I don't get# my fan time." |
63 |
message[2] = "* I like, found it here so I# decided to put it to use." |
64 |
} |
65 |
npc_flag = 2 |
66 |
break |
67 |
case 2: |
68 |
with (msg) |
69 |
{ |
70 |
portrait = false |
71 |
sndfnt = 99 |
72 |
message[0] = "* I should move to Waterfall,# bro." |
73 |
message[1] = "* Much cooler." |
74 |
} |
75 |
break |
76 |
} |
77 |
|
78 |
} |
79 |
} |