|
1
|
if (global.osflavor != 4)
|
|
2
|
room_goto(room_of_dog Dogcheck room);
|
|
3
|
dogtimer = 0;
|
|
4
|
image_speed = 0.1;
|
|
5
|
x = 146;
|
|
6
|
y = 49;
|
|
7
|
if (caster_is_playing(global.currentsong) != 1)
|
|
8
|
{
|
|
9
|
if (global.flag[294 dog_shrine_level] >= 6)
|
|
10
|
{
|
|
11
|
global.currentsong = 240;
|
|
12
|
caster_loop(global.currentsong, 1, 1);
|
|
13
|
}
|
|
14
|
else
|
|
15
|
{
|
|
16
|
global.currentsong = 239;
|
|
17
|
caster_loop(global.currentsong, 1, 1);
|
|
18
|
}
|
|
19
|
}
|
|
20
|
doglevel = global.flag[294 dog_shrine_level];
|
|
21
|
if (doglevel == 1 && global.flag[295 shrine_text_progression] == 1)
|
|
22
|
global.flag[295 shrine_text_progression] = 2;
|
|
23
|
if (doglevel == 15)
|
|
24
|
global.flag[295 shrine_text_progression] = 6;
|
|
25
|
if (global.flag[292 shrine_donation_amount] >= global.flag[293 shrine_donation_goal])
|
|
26
|
global.flag[292 shrine_donation_amount] = 0;
|
|
27
|
if (global.flag[294 dog_shrine_level] == 0)
|
|
28
|
global.flag[293 shrine_donation_goal] = 2;
|
|
29
|
if (global.flag[294 dog_shrine_level] == 1)
|
|
30
|
global.flag[293 shrine_donation_goal] = 4;
|
|
31
|
if (global.flag[294 dog_shrine_level] == 2)
|
|
32
|
global.flag[293 shrine_donation_goal] = 6;
|
|
33
|
if (global.flag[294 dog_shrine_level] == 3)
|
|
34
|
global.flag[293 shrine_donation_goal] = 8;
|
|
35
|
if (global.flag[294 dog_shrine_level] == 4)
|
|
36
|
global.flag[293 shrine_donation_goal] = 10;
|
|
37
|
if (global.flag[294 dog_shrine_level] == 5)
|
|
38
|
global.flag[293 shrine_donation_goal] = 13;
|
|
39
|
if (global.flag[294 dog_shrine_level] == 6)
|
|
40
|
global.flag[293 shrine_donation_goal] = 16;
|
|
41
|
if (global.flag[294 dog_shrine_level] == 7)
|
|
42
|
global.flag[293 shrine_donation_goal] = 19;
|
|
43
|
if (global.flag[294 dog_shrine_level] == 8)
|
|
44
|
global.flag[293 shrine_donation_goal] = 22;
|
|
45
|
if (global.flag[294 dog_shrine_level] == 9)
|
|
46
|
global.flag[293 shrine_donation_goal] = 25;
|
|
47
|
if (global.flag[294 dog_shrine_level] == 10)
|
|
48
|
global.flag[293 shrine_donation_goal] = 30;
|
|
49
|
if (global.flag[294 dog_shrine_level] == 11)
|
|
50
|
global.flag[293 shrine_donation_goal] = 35;
|
|
51
|
if (global.flag[294 dog_shrine_level] == 12)
|
|
52
|
global.flag[293 shrine_donation_goal] = 40;
|
|
53
|
if (global.flag[294 dog_shrine_level] == 13)
|
|
54
|
global.flag[293 shrine_donation_goal] = 50;
|
|
55
|
if (global.flag[294 dog_shrine_level] == 14)
|
|
56
|
global.flag[293 shrine_donation_goal] = 70;
|
|
57
|
if (global.flag[294 dog_shrine_level] == 15)
|
|
58
|
global.flag[293 shrine_donation_goal] = 0;
|
|
59
|
dogshrine = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (0, 0, spr_dogshrine);
|
|
60
|
with (dogshrine)
|
|
61
|
depth = 900000;
|
|
62
|
donationbox = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (137, 76, spr_ds_donationbox);
|
|
63
|
with (donationbox)
|
|
64
|
{
|
|
65
|
depth = 860000;
|
|
66
|
mysolid = instance_create(x, y - 5, obj_solidsmall);
|
|
67
|
myint = instance_create(x + 8, y - 5, obj_readable_room5);
|
|
68
|
myint.image_xscale = 1.5;
|
|
69
|
mysolid.image_xscale = 2.2;
|
|
70
|
myint.dognumber = 1;
|
|
71
|
}
|
|
72
|
if (doglevel >= 1)
|
|
73
|
{
|
|
74
|
fairylights = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (46, 6, spr_ds_fairylights);
|
|
75
|
with (fairylights)
|
|
76
|
depth = 960000;
|
|
77
|
}
|
|
78
|
if (doglevel >= 2)
|
|
79
|
{
|
|
80
|
dango = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (226, 160, spr_ds_dango);
|
|
81
|
with (dango)
|
|
82
|
{
|
|
83
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
84
|
mysolid = instance_create(x, y + 8, obj_solidsmall);
|
|
85
|
myint = instance_create(x, y + 8, obj_readable_room5);
|
|
86
|
myint.image_xscale = 0.8;
|
|
87
|
mysolid.image_xscale = 0.8;
|
|
88
|
myint.dognumber = 2;
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (doglevel >= 6)
|
|
92
|
{
|
|
93
|
boombox = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (232, 80, spr_ds_boombox);
|
|
94
|
with (boombox)
|
|
95
|
{
|
|
96
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
97
|
mysolid = instance_create(x, y - 2, obj_solidsmall);
|
|
98
|
myint = instance_create(x, y - 2, obj_readable_room5);
|
|
99
|
myint.image_xscale = 1.4;
|
|
100
|
mysolid.image_xscale = 1.4;
|
|
101
|
myint.dognumber = 3;
|
|
102
|
}
|
|
103
|
}
|
|
104
|
if (doglevel >= 7)
|
|
105
|
{
|
|
106
|
cd = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (256, 112, spr_ds_cd);
|
|
107
|
with (cd)
|
|
108
|
{
|
|
109
|
depth = 900000;
|
|
110
|
myint = instance_create(x, y, obj_readable_room5);
|
|
111
|
myint.image_xscale = 0.5;
|
|
112
|
myint.image_yscale = 0.3;
|
|
113
|
myint.dognumber = 4;
|
|
114
|
}
|
|
115
|
}
|
|
116
|
if (doglevel >= 5)
|
|
117
|
{
|
|
118
|
with (dogshrine)
|
|
119
|
image_index = 1;
|
|
120
|
}
|
|
121
|
if (doglevel >= 3)
|
|
122
|
{
|
|
123
|
ad = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (48, 42, spr_ds_advertisement);
|
|
124
|
with (ad)
|
|
125
|
{
|
|
126
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
127
|
image_speed = 0.2;
|
|
128
|
mysolid = instance_create(x + 22, y + 58, obj_solidsmall);
|
|
129
|
myint = instance_create(x + 22, y + 58, obj_readable_room5);
|
|
130
|
myint.image_yscale = 0.8;
|
|
131
|
mysolid.image_yscale = 0.8;
|
|
132
|
myint.dognumber = 5;
|
|
133
|
}
|
|
134
|
}
|
|
135
|
if (doglevel >= 4)
|
|
136
|
{
|
|
137
|
photo1 = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (194, 160, spr_ds_papphoto);
|
|
138
|
with (photo1)
|
|
139
|
{
|
|
140
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
141
|
mysolid = instance_create(x, y + 8, obj_solidsmall);
|
|
142
|
myint = instance_create(x, y + 8, obj_readable_room5);
|
|
143
|
myint.image_xscale = 0.8;
|
|
144
|
mysolid.image_xscale = 0.8;
|
|
145
|
myint.dognumber = 6;
|
|
146
|
}
|
|
147
|
}
|
|
148
|
if (doglevel >= 8)
|
|
149
|
{
|
|
150
|
photo2 = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (108, 80, spr_ds_papphoto);
|
|
151
|
with (photo2)
|
|
152
|
{
|
|
153
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
154
|
mysolid = instance_create(x, y - 4, obj_solidsmall);
|
|
155
|
myint = instance_create(x, y - 4, obj_readable_room5);
|
|
156
|
myint.image_xscale = 0.8;
|
|
157
|
mysolid.image_xscale = 0.8;
|
|
158
|
myint.dognumber = 7;
|
|
159
|
}
|
|
160
|
}
|
|
161
|
if (doglevel >= 9)
|
|
162
|
{
|
|
163
|
rope1 = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (60, 150, spr_ds_rope);
|
|
164
|
with (rope1)
|
|
165
|
{
|
|
166
|
depth = 900000;
|
|
167
|
myint = instance_create(x - 3, y + 4, obj_readable_room5);
|
|
168
|
myint.image_yscale = 0.6;
|
|
169
|
myint.dognumber = 8;
|
|
170
|
}
|
|
171
|
}
|
|
172
|
if (doglevel >= 10)
|
|
173
|
{
|
|
174
|
with (dogshrine)
|
|
175
|
image_index = 2;
|
|
176
|
with (donationbox)
|
|
177
|
image_index = 1;
|
|
178
|
}
|
|
179
|
if (doglevel >= 11)
|
|
180
|
{
|
|
181
|
dogtap = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (257, 136, spr_ds_dogtap);
|
|
182
|
with (dogtap)
|
|
183
|
{
|
|
184
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
185
|
mysolid = instance_create(x, y + 13, obj_solidsmall);
|
|
186
|
myint = instance_create(x, y + 13, obj_readable_room5);
|
|
187
|
myint.image_yscale = 0.8;
|
|
188
|
mysolid.image_yscale = 0.8;
|
|
189
|
myint.dognumber = 9;
|
|
190
|
}
|
|
191
|
}
|
|
192
|
if (doglevel >= 12)
|
|
193
|
{
|
|
194
|
blueprint = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (88, 162, spr_ds_blueprints);
|
|
195
|
with (blueprint)
|
|
196
|
{
|
|
197
|
depth = 900000;
|
|
198
|
myint = instance_create(x + 2, y - 1, obj_readable_room5);
|
|
199
|
myint.image_yscale = 0.6;
|
|
200
|
myint.image_xscale = 2;
|
|
201
|
myint.dognumber = 10;
|
|
202
|
}
|
|
203
|
}
|
|
204
|
if (doglevel >= 13)
|
|
205
|
{
|
|
206
|
rope2 = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (52, 124, spr_ds_rope);
|
|
207
|
with (rope2)
|
|
208
|
{
|
|
209
|
depth = 900000;
|
|
210
|
myint = instance_create(x - 3, y + 4, obj_readable_room5);
|
|
211
|
myint.image_yscale = 0.6;
|
|
212
|
myint.dognumber = 11;
|
|
213
|
}
|
|
214
|
}
|
|
215
|
if (doglevel >= 14)
|
|
216
|
{
|
|
217
|
cert = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (193, 67, spr_ds_certification);
|
|
218
|
with (cert)
|
|
219
|
{
|
|
220
|
scr_depthscr_depth
depth = 50000 - ((y * 10) + (sprite_height * 10)); ();
|
|
221
|
mysolid = instance_create(x + 1, y + 4, obj_solidsmall);
|
|
222
|
myint = instance_create(x + 1, y + 4, obj_readable_room5);
|
|
223
|
myint.image_xscale = 1;
|
|
224
|
mysolid.image_xscale = 1;
|
|
225
|
myint.dognumber = 12;
|
|
226
|
}
|
|
227
|
}
|
|
228
|
if (doglevel >= 15)
|
|
229
|
{
|
|
230
|
with (dogshrine)
|
|
231
|
image_index = 3;
|
|
232
|
with (donationbox)
|
|
233
|
image_index = 2;
|
|
234
|
}
|