1 |
if (myinteract == 1) |
2 |
{ |
3 |
if (obj_kitchenchecker.level == 0) |
4 |
{ |
5 |
global.interact = 1; |
6 |
alarm[0] = 1;gml_Object_obj_papfridge_Alarm_0.gmlmyinteract = 3;
global.msc = 0;
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
if (instance_exists(obj_papyrusparent))
{
scr_papface(0, 0);
global.msg[1] = AH-HA!Delay 11 INTERESTED IN MY FOOD MUSEUM?Wait for input ;
global.msg[2] = PLEASE.Delay 11 PERUSE MY CULINARY ARTSHOW.Wait for input ;
global.msg[3] = \TS \F0 \T0 Close Message ;
global.msg[4] = * (Half of the fridge is filled with containers all labelled "spaghetti.")Wait for input ;
global.msg[5] = * (The other half contains nothing but an empty bag of chips.)Wait for inputClose MessageClose Message ;
if (talkedto > 0)
global.msg[1] = GREAT FRIDGE,Delay 11 ISN'T IT?Wait for inputClose MessageClose Message ;
}
else
{
global.msg[0] = * (Half of the fridge is filled with containers all labelled "spaghetti.")Wait for input ;
global.msg[1] = * (The other half contains nothing but an empty bag of chips.)Wait for inputClose MessageClose Message ;
}
mydialoguer = instance_create(0, 0, obj_dialoguer);
talkedto += 1; |
7 |
myinteract = 2; |
8 |
} |
9 |
else |
10 |
{ |
11 |
x -= 400; |
12 |
myinteract = 0; |
13 |
with (obj_mainchara) |
14 |
{ |
15 |
if (global.facing == 2) |
16 |
{ |
17 |
if (collision_rectangle(x + 4, (y + sprite_height) - 5, (x + sprite_width) - 4, y + 5, obj_interactable, 0, 1)) |
18 |
{ |
19 |
interactedobject = collision_rectangle(x + 4, (y + sprite_height) - 5, (x + sprite_width) - 4, y + 8, obj_interactable, 0, 1); |
20 |
if (interactedobject != -4) |
21 |
{ |
22 |
with (interactedobject) |
23 |
facing = 0; |
24 |
with (interactedobject) |
25 |
script_execute(scr_interact); |
26 |
} |
27 |
} |
28 |
} |
29 |
} |
30 |
x += 400; |
31 |
} |
32 |
} |
33 |
if (myinteract == 3) |
34 |
{ |
35 |
if (instance_exists(mydialoguer) == 0) |
36 |
{ |
37 |
global.interact = 0; |
38 |
myinteract = 0; |
39 |
} |
40 |
} |