|
1
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); (0, 0, 0, 0, 0);
|
|
2
|
if (fun == 0)
|
|
3
|
{
|
|
4
|
if (instance_exists(obj_face_papyrus))
|
|
5
|
image_index = obj_face_papyrus.image_index;
|
|
6
|
else if (speed == 0 && path_speed == 0)
|
|
7
|
image_index = 0;
|
|
8
|
}
|
|
9
|
if (speed == 0 && con == 0)
|
|
10
|
scr_npc_watchscr_npc_watch
if (argument0 == 0)
{
if (instance_exists(obj_mainchara))
{
xdist = (obj_mainchara.x + (obj_mainchara.sprite_width / 2)) - (x + (sprite_width / 2));
ydist = obj_mainchara.bbox_top - bbox_top;
if (abs(xdist) >= abs(ydist))
{
if (xdist >= 0)
sprite_index = rtsprite;
else
sprite_index = ltsprite;
}
else if (ydist >= 0)
{
sprite_index = dtsprite;
}
else
{
sprite_index = utsprite;
}
}
}
if (argument0 == 1)
{
if (instance_exists(obj_mainchara))
{
xdist = (obj_mainchara.x + (obj_mainchara.sprite_width / 2)) - (x + (sprite_width / 2));
ydist = obj_mainchara.bbox_top - bbox_top;
if (abs(xdist) >= abs(ydist))
{
if (xdist >= 0)
sprite_index = rsprite;
else
sprite_index = lsprite;
}
else if (ydist >= 0)
{
sprite_index = dsprite;
}
else
{
sprite_index = usprite;
}
}
} (0);
|
|
11
|
if (con == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
12
|
{
|
|
13
|
con = 2;
|
|
14
|
solid = 0;
|
|
15
|
global.phase = 1;
|
|
16
|
}
|
|
17
|
if (con == 2)
|
|
18
|
{
|
|
19
|
if (obj_mainchara.bbox_top <= bbox_bottom && obj_mainchara.bbox_left < bbox_right)
|
|
20
|
{
|
|
21
|
obj_mainchara.facing = 0;
|
|
22
|
global.facing = 0;
|
|
23
|
obj_mainchara.image_speed = 0.25;
|
|
24
|
obj_mainchara.vspeed = 1;
|
|
25
|
}
|
|
26
|
else
|
|
27
|
{
|
|
28
|
sprite_index = lsprite;
|
|
29
|
obj_mainchara.facing = 3;
|
|
30
|
global.facing = 3;
|
|
31
|
obj_mainchara.image_speed = 0;
|
|
32
|
obj_mainchara.vspeed = 0;
|
|
33
|
con = 3;
|
|
34
|
alarm[2] = 20; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
35
|
}
|
|
36
|
}
|
|
37
|
if (con == 4)
|
|
38
|
{
|
|
39
|
hspeed = -5;
|
|
40
|
sprite_index = lsprite;
|
|
41
|
image_speed = 0.5;
|
|
42
|
con = 4.5;
|
|
43
|
alarm[2] = 145; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
44
|
}
|
|
45
|
if (con == 4.5)
|
|
46
|
{
|
|
47
|
if (obj_mainchara.bbox_left > bbox_right)
|
|
48
|
{
|
|
49
|
obj_mainchara.hspeed = -5;
|
|
50
|
obj_mainchara.image_speed = 0.5;
|
|
51
|
}
|
|
52
|
}
|
|
53
|
if (con == 5.5)
|
|
54
|
{
|
|
55
|
obj_mainchara.hspeed = 0;
|
|
56
|
obj_mainchara.image_index = 0;
|
|
57
|
obj_mainchara.image_speed = 0;
|
|
58
|
con = 5;
|
|
59
|
alarm[2] = 6; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
60
|
}
|
|
61
|
if (con == 6)
|
|
62
|
{
|
|
63
|
hspeed = 0;
|
|
64
|
vspeed = 4;
|
|
65
|
sprite_index = dsprite;
|
|
66
|
obj_mainchara.hspeed = 0;
|
|
67
|
obj_mainchara.image_index = 0;
|
|
68
|
obj_mainchara.image_speed = 0;
|
|
69
|
obj_mainchara.facing = 0;
|
|
70
|
global.facing = 0;
|
|
71
|
con = 7;
|
|
72
|
alarm[2] = 8; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
73
|
}
|
|
74
|
if (con == 8)
|
|
75
|
{
|
|
76
|
sprite_index = rsprite;
|
|
77
|
vspeed = 0;
|
|
78
|
hspeed = 5;
|
|
79
|
if (bbox_left > (obj_mainchara.bbox_right + 10))
|
|
80
|
{
|
|
81
|
obj_mainchara.hspeed = 5;
|
|
82
|
global.facing = 1;
|
|
83
|
obj_mainchara.facing = 1;
|
|
84
|
obj_mainchara.image_speed = 0.5;
|
|
85
|
con = 9;
|
|
86
|
alarm[2] = 145; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
87
|
}
|
|
88
|
}
|
|
89
|
if (con == 10)
|
|
90
|
{
|
|
91
|
hspeed = 0;
|
|
92
|
obj_mainchara.hspeed = 0;
|
|
93
|
sprite_index = utsprite;
|
|
94
|
obj_mainchara.image_speed = 0;
|
|
95
|
image_speed = 0;
|
|
96
|
obj_mainchara.facing = 2;
|
|
97
|
global.facing = 2;
|
|
98
|
con = 11;
|
|
99
|
alarm[2] = 15; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
100
|
}
|
|
101
|
if (con == 12)
|
|
102
|
{
|
|
103
|
myinteract = 3;
|
|
104
|
global.typer = 19;
|
|
105
|
global.facechoice = 4;
|
|
106
|
global.faceemotion = 0;
|
|
107
|
global.msg[0] = MY HOUSE!!!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_papyrus_houseoutside_303") ;
|
|
108
|
mydialoguer = instance_create(0, 0, obj_dialoguer);
|
|
109
|
con = 13;
|
|
110
|
}
|
|
111
|
if (con == 13 && instance_exists(OBJ_WRITER) == 0)
|
|
112
|
{
|
|
113
|
vspeed = -6;
|
|
114
|
sprite_index = usprite;
|
|
115
|
image_speed = 0.25;
|
|
116
|
con = 14;
|
|
117
|
alarm[2] = 7; gml_Object_obj_papyrus_houseoutside_Alarm_2.gml
con += 1;
|
|
118
|
}
|
|
119
|
if (con == 15)
|
|
120
|
{
|
|
121
|
caster_play(mus_doorclose, 1, 1);
|
|
122
|
global.flag[88 dated_papyrus] = 2;
|
|
123
|
global.phasing = 0;
|
|
124
|
global.interact = 0;
|
|
125
|
instance_destroy();
|
|
126
|
obj_paphouse_entrance.dooract = 1;
|
|
127
|
}
|