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 |
if (global.dunes_flag[24] == 1) |
7 |
{ |
8 |
switch npc_flag |
9 |
{ |
10 |
case 0: |
11 |
with (msg) |
12 |
{ |
13 |
portrait = false |
14 |
sndfnt = 99 |
15 |
message[0] = "* Howdy, Deputy!" |
16 |
message[1] = "* You are the deputy, right?" |
17 |
message[2] = "* I heard the squad got real# peeved off after learning# that." |
18 |
message[3] = "* Nyahaha! Don't worry, I# believe in you!" |
19 |
} |
20 |
npc_flag = 1 |
21 |
break |
22 |
case 1: |
23 |
with (msg) |
24 |
{ |
25 |
portrait = false |
26 |
sndfnt = 99 |
27 |
message[0] = "* Nyahaha!" |
28 |
} |
29 |
break |
30 |
} |
31 |
|
32 |
} |
33 |
if (global.dunes_flag[24] == 2) |
34 |
{ |
35 |
switch npc_flag |
36 |
{ |
37 |
case 0: |
38 |
with (msg) |
39 |
{ |
40 |
portrait = false |
41 |
sndfnt = 99 |
42 |
message[0] = "* Howdy, Deputy. " |
43 |
message[1] = "* I'm real worried! Worried# sick! " |
44 |
message[2] = "* No one can find the Sheriff!# Nyo one at all! " |
45 |
message[3] = "* He's gonna return soon, right?# He's gotta!" |
46 |
} |
47 |
npc_flag = 1 |
48 |
break |
49 |
case 1: |
50 |
with (msg) |
51 |
{ |
52 |
portrait = false |
53 |
sndfnt = 99 |
54 |
message[0] = "* Nyohoho." |
55 |
} |
56 |
break |
57 |
} |
58 |
|
59 |
} |
60 |
} |