|
1
|
if (myinteract == 1)
|
|
2
|
{
|
|
3
|
global.interact = 1;
|
|
4
|
alarm[0] = 1; gml_Object_obj_sans_sentry2_Alarm_0.gml
myinteract = 3;
global.msc = 0;
global.typer = 17;
global.facechoice = 3;
global.faceemotion = 0;
global.msg[0] = * grievous errorWait for inputClose MessageClose Message ;
if (global.flag[89 dated_sans1] == 0)
global.msc = 567;
if (global.flag[89 dated_sans1] == 2)
global.msg[0] = * let's hang out again sometime.Wait for inputClose MessageClose Message ;
if (scr_murderlv() >= 7)
{
global.faceemotion = 3;
global.msc = 0;
global.msg[0] = \E3* hey,Delay 11 i really respect what you did back there.Wait for input ;
global.msg[1] = \E2* thanks.Wait for inputClose MessageClose Message ;
}
mydialoguer = instance_create(0, 0, obj_dialoguer);
talkedto += 1;
|
|
5
|
myinteract = 2;
|
|
6
|
}
|
|
7
|
if (myinteract == 3)
|
|
8
|
{
|
|
9
|
if (instance_exists(mydialoguer) == 0 && con == 0)
|
|
10
|
{
|
|
11
|
global.interact = 0;
|
|
12
|
myinteract = 0;
|
|
13
|
}
|
|
14
|
}
|
|
15
|
if (con == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
16
|
{
|
|
17
|
con = 2;
|
|
18
|
alarm[4] = 10; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
19
|
global.interact = 1;
|
|
20
|
}
|
|
21
|
if (con == 2)
|
|
22
|
global.interact = 1;
|
|
23
|
if (con == 3)
|
|
24
|
{
|
|
25
|
sprite_index = lsprite;
|
|
26
|
image_speed = 0.25;
|
|
27
|
hspeed = -3;
|
|
28
|
con = 4;
|
|
29
|
alarm[4] = 14; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
30
|
}
|
|
31
|
if (con == 5)
|
|
32
|
{
|
|
33
|
sprite_index = dsprite;
|
|
34
|
hspeed = 0;
|
|
35
|
vspeed = 3;
|
|
36
|
con = 6;
|
|
37
|
alarm[4] = 18; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
38
|
global.facing = 3;
|
|
39
|
}
|
|
40
|
if (con == 7)
|
|
41
|
{
|
|
42
|
sprite_index = rsprite;
|
|
43
|
global.facing = 0;
|
|
44
|
hspeed = 3;
|
|
45
|
vspeed = 0;
|
|
46
|
con = 8;
|
|
47
|
alarm[4] = 17; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
48
|
}
|
|
49
|
if (con == 9)
|
|
50
|
{
|
|
51
|
image_speed = 0;
|
|
52
|
hspeed = 0;
|
|
53
|
con = 10;
|
|
54
|
alarm[4] = 20; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
55
|
}
|
|
56
|
if (con == 11)
|
|
57
|
{
|
|
58
|
instance_create(0, 0, obj_musfadeout);
|
|
59
|
global.facing = 0;
|
|
60
|
sprite_index = usprite;
|
|
61
|
image_index = 0;
|
|
62
|
global.msc = 0;
|
|
63
|
global.facechoice = 3;
|
|
64
|
global.msg[0] = * over here.Delay 11 * i know a shortcut.Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_sans_sentry2_306") ;
|
|
65
|
instance_create(0, 0, obj_dialoguer);
|
|
66
|
con = 12;
|
|
67
|
}
|
|
68
|
if (con == 12 && instance_exists(OBJ_WRITER) == 0)
|
|
69
|
{
|
|
70
|
with (obj_doorA)
|
|
71
|
instance_destroy();
|
|
72
|
with (obj_doorAmusicfade)
|
|
73
|
instance_destroy();
|
|
74
|
global.facing = 1;
|
|
75
|
hspeed = 3;
|
|
76
|
sprite_index = rsprite;
|
|
77
|
image_speed = 0.25;
|
|
78
|
obj_mainchara.hspeed = 2;
|
|
79
|
obj_mainchara.vspeed = 1;
|
|
80
|
obj_mainchara.image_speed = 0.334;
|
|
81
|
con = 13;
|
|
82
|
alarm[4] = 30; gml_Object_obj_sans_sentry2_Alarm_4.gml
con += 1;
|
|
83
|
}
|
|
84
|
if (con == 14)
|
|
85
|
{
|
|
86
|
event_user(2);
|
|
87
|
con = 15;
|
|
88
|
}
|