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 |
is_talking = 1 |
6 |
switch npc_flag |
7 |
{ |
8 |
case 0: |
9 |
with (msg) |
10 |
{ |
11 |
portrait = false |
12 |
sndfnt = 99 |
13 |
message[0] = "* H-hewwo." |
14 |
message[1] = "* I'm hewe fow da fwee wowypops." |
15 |
message[2] = "* Aftuh I checked myself in, da# Dowc said he wan out of# wowypops yestewday." |
16 |
message[3] = "* Bummuh..." |
17 |
message[4] = "* At least I hawve dis fwuffy bed# to cheew me up." |
18 |
} |
19 |
npc_flag++ |
20 |
break |
21 |
case 1: |
22 |
with (msg) |
23 |
{ |
24 |
portrait = false |
25 |
sndfnt = 99 |
26 |
message[0] = "* You know whawt's bettuh than# wowypops? Hot chowcolate pops." |
27 |
message[1] = "* A nice mownstuh named Mo gave# me one one day." |
28 |
message[2] = "* Mownstuhs wike him desewve a# big huwg." |
29 |
} |
30 |
npc_flag++ |
31 |
break |
32 |
case 2: |
33 |
with (msg) |
34 |
{ |
35 |
portrait = false |
36 |
sndfnt = 99 |
37 |
message[0] = "* I wuwnder how wong it'll take# da Dowc to reawize I'm not sick?" |
38 |
} |
39 |
break |
40 |
} |
41 |
|
42 |
} |