1 |
event_inherited() |
2 |
if interact |
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 |
sndfnt = 99 |
12 |
talker[0] = other |
13 |
message[0] = "* Brrr! Sure is chilly out here!" |
14 |
message[1] = "* Nothing a smile can't# persevere through, though!" |
15 |
} |
16 |
npc_flag = 1 |
17 |
break |
18 |
case 1: |
19 |
with (msg) |
20 |
{ |
21 |
portrait = false |
22 |
sndfnt = 99 |
23 |
talker[0] = other |
24 |
message[0] = "* I'm waiting for my siblings to# find their way out!" |
25 |
message[1] = "* We're all going to migrate to# a warmer environment!" |
26 |
message[2] = "* Somewhere we can really plant# some roots!" |
27 |
} |
28 |
npc_flag = 2 |
29 |
break |
30 |
case 2: |
31 |
with (msg) |
32 |
{ |
33 |
portrait = false |
34 |
sndfnt = 99 |
35 |
talker[0] = other |
36 |
message[0] = "* Before you leave us, you# should try hugging someone!" |
37 |
message[1] = "* You never know how effective# it may be!" |
38 |
message[2] = "* Call it a \"Sweet Corn# Challenge!\"" |
39 |
} |
40 |
npc_flag = 3 |
41 |
break |
42 |
case 3: |
43 |
with (msg) |
44 |
{ |
45 |
portrait = false |
46 |
sndfnt = 99 |
47 |
talker[0] = other |
48 |
message[0] = "* So cold! So cold!" |
49 |
} |
50 |
break |
51 |
} |
52 |
|
53 |
} |