|
1
|
if (myinteract == 3)
|
|
2
|
{
|
|
3
|
}
|
|
4
|
if (myinteract == 3 && con == 0)
|
|
5
|
{
|
|
6
|
if (instance_exists(mydialoguer) == false)
|
|
7
|
{
|
|
8
|
sprite_index = spr_hammerguy;
|
|
9
|
image_speed = 0.1;
|
|
10
|
global.interact = 0;
|
|
11
|
myinteract = 0;
|
|
12
|
with (obj_mainchara)
|
|
13
|
onebuffer = 5;
|
|
14
|
}
|
|
15
|
}
|
|
16
|
if (con >= 5)
|
|
17
|
{
|
|
18
|
if (con == 10 || con == 30 || con == 50)
|
|
19
|
{
|
|
20
|
if (!d_ex())
|
|
21
|
{
|
|
22
|
snd_pause(global.currentsong[1]);
|
|
23
|
sprite_index = spr_hammerguy_powerup;
|
|
24
|
image_index = 0;
|
|
25
|
image_speed = 0.5;
|
|
26
|
snd_play(snd_noise);
|
|
27
|
con += 1;
|
|
28
|
alarm[4] = 30; gml_Object_obj_npc_hammerguy_Alarm_4.gml
con += 1;
|
|
29
|
charcycle = 0;
|
|
30
|
charamt = 0;
|
|
31
|
if (global.char[1] > 0)
|
|
32
|
charamt = 1;
|
|
33
|
if (global.char[2] > 0)
|
|
34
|
charamt = 2;
|
|
35
|
charcycle = charamt;
|
|
36
|
}
|
|
37
|
}
|
|
38
|
if (con == 12 || con == 32 || con == 52)
|
|
39
|
{
|
|
40
|
hitmode = 1;
|
|
41
|
sprite_index = spr_hammerguy_hit;
|
|
42
|
image_speed = 0.5;
|
|
43
|
image_index = 0;
|
|
44
|
con += 1;
|
|
45
|
}
|
|
46
|
if (con == 15)
|
|
47
|
{
|
|
48
|
with (char)
|
|
49
|
instance_destroy();
|
|
50
|
with (global.cinstance[0])
|
|
51
|
visible = 1;
|
|
52
|
with (global.cinstance[1])
|
|
53
|
visible = 1;
|
|
54
|
obj_mainchara.visible = 1;
|
|
55
|
con = 13;
|
|
56
|
charcycle -= 1;
|
|
57
|
if (charcycle < 0)
|
|
58
|
con = 16;
|
|
59
|
}
|
|
60
|
if (con == 13)
|
|
61
|
{
|
|
62
|
chartype = global.char[charcycle];
|
|
63
|
if (charcycle == 0)
|
|
64
|
{
|
|
65
|
with (obj_mainchara)
|
|
66
|
visible = 0;
|
|
67
|
char = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (390, 125, spr_krisd_dark);
|
|
68
|
with (char)
|
|
69
|
depth = 400000;
|
|
70
|
}
|
|
71
|
if (charcycle == 1 || charcycle == 2)
|
|
72
|
{
|
|
73
|
with (global.cinstance[charcycle - 1])
|
|
74
|
visible = 0;
|
|
75
|
if (chartype == 2)
|
|
76
|
{
|
|
77
|
char = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (380, 110, spr_susie_shock);
|
|
78
|
with (char)
|
|
79
|
depth = 400000;
|
|
80
|
}
|
|
81
|
if (chartype == 3)
|
|
82
|
{
|
|
83
|
char = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (390, 140, spr_ralsei_shock_overworld);
|
|
84
|
with (char)
|
|
85
|
depth = 400000;
|
|
86
|
}
|
|
87
|
}
|
|
88
|
con = 14;
|
|
89
|
alarm[4] = 36; gml_Object_obj_npc_hammerguy_Alarm_4.gml
con += 1;
|
|
90
|
}
|
|
91
|
if (con == 16 || con == 36 || con == 56)
|
|
92
|
{
|
|
93
|
hitmode = 0;
|
|
94
|
sprite_index = spr_hammerguy;
|
|
95
|
image_speed = 0.05;
|
|
96
|
image_index = 0;
|
|
97
|
snd_resume(global.currentsong[1]);
|
|
98
|
con += 1;
|
|
99
|
}
|
|
100
|
if (con == 17)
|
|
101
|
{
|
|
102
|
global.hp[1] = global.maxhp[1];
|
|
103
|
global.hp[2] = global.maxhp[2];
|
|
104
|
global.hp[3] = global.maxhp[3];
|
|
105
|
global.typer = 6;
|
|
106
|
global.fc = 0;
|
|
107
|
snd_play(snd_power);
|
|
108
|
global.msg[0] = * (Somehow,Delay 11 everyone's HP was restored.)Wait for input ;
|
|
109
|
global.msg[1] = * Well,Delay 11 well!Delay 11 Don't you feel better after a nice massage?Delay 11 Huh-Hah!!Wait for inputClose Message ;
|
|
110
|
mydialoguer = instance_create(0, 0, obj_dialoguer);
|
|
111
|
con = 18;
|
|
112
|
}
|
|
113
|
if (con == 18 || con == 38 || con == 58)
|
|
114
|
{
|
|
115
|
if (!d_ex())
|
|
116
|
{
|
|
117
|
myinteract = 0;
|
|
118
|
global.interact = 0;
|
|
119
|
with (obj_mainchara)
|
|
120
|
onebuffer = 10;
|
|
121
|
con = 0;
|
|
122
|
}
|
|
123
|
}
|
|
124
|
if (hitmode == 1)
|
|
125
|
{
|
|
126
|
if (image_index == 4)
|
|
127
|
snd_play(snd_squeaky);
|
|
128
|
if (image_index >= 10)
|
|
129
|
image_index = 0;
|
|
130
|
}
|
|
131
|
if (con == 33)
|
|
132
|
{
|
|
133
|
char = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (385, 160, spr_brokencake);
|
|
134
|
with (char)
|
|
135
|
depth = 400000;
|
|
136
|
con = 34;
|
|
137
|
alarm[4] = 50; gml_Object_obj_npc_hammerguy_Alarm_4.gml
con += 1;
|
|
138
|
}
|
|
139
|
if (con == 35)
|
|
140
|
{
|
|
141
|
with (char)
|
|
142
|
instance_destroy();
|
|
143
|
con = 36;
|
|
144
|
}
|
|
145
|
if (con == 37)
|
|
146
|
{
|
|
147
|
scr_keyitemremovescr_keyitemremove
function scr_keyitemremove(arg0)
{
removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1)
{
loc = 0;
skip = 0;
if (global.keyitem[0] == arg0 && skip == 0)
{
loc = 0;
skip = 1;
}
if (global.keyitem[1] == arg0 && skip == 0)
{
loc = 1;
skip = 1;
}
if (global.keyitem[2] == arg0 && skip == 0)
{
loc = 2;
skip = 1;
}
if (global.keyitem[3] == arg0 && skip == 0)
{
loc = 3;
skip = 1;
}
if (global.keyitem[4] == arg0 && skip == 0)
{
loc = 4;
skip = 1;
}
if (global.keyitem[5] == arg0 && skip == 0)
{
loc = 5;
skip = 1;
}
if (global.keyitem[6] == arg0 && skip == 0)
{
loc = 6;
skip = 1;
}
if (global.keyitem[7] == arg0 && skip == 0)
{
loc = 7;
skip = 1;
}
if (global.keyitem[8] == arg0 && skip == 0)
{
loc = 8;
skip = 1;
}
if (global.keyitem[9] == arg0 && skip == 0)
{
loc = 9;
skip = 1;
}
if (global.keyitem[10] == arg0 && skip == 0)
{
loc = 10;
skip = 1;
}
if (global.keyitem[11] == arg0 && skip == 0)
{
loc = 11;
skip = 1;
}
scr_keyitemshift(loc, 0);
removed = 1;
}
} (3);
|
|
148
|
global.typer = 6;
|
|
149
|
global.fc = 0;
|
|
150
|
snd_play(snd_item);
|
|
151
|
global.msg[0] = * (The Broken Cake was fixed beyond recognition.)Wait for input ;
|
|
152
|
global.msg[1] = * (The Broken Cake became the TOPCAKE.)Wait for input ;
|
|
153
|
global.msg[2] = * This is truly a tremendous cake.Delay 11 * Use its power wisely...Wait for inputClose Message ;
|
|
154
|
mydialoguer = instance_create(0, 0, obj_dialoguer);
|
|
155
|
con = 38;
|
|
156
|
}
|
|
157
|
if (con == 53)
|
|
158
|
{
|
|
159
|
char = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (390, 170, spr_brokenkey);
|
|
160
|
with (char)
|
|
161
|
depth = 400000;
|
|
162
|
con = 54;
|
|
163
|
alarm[4] = 50; gml_Object_obj_npc_hammerguy_Alarm_4.gml
con += 1;
|
|
164
|
}
|
|
165
|
if (con == 55)
|
|
166
|
{
|
|
167
|
with (char)
|
|
168
|
instance_destroy();
|
|
169
|
con = 56;
|
|
170
|
}
|
|
171
|
if (con == 57)
|
|
172
|
{
|
|
173
|
scr_keyitemremovescr_keyitemremove
function scr_keyitemremove(arg0)
{
removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1)
{
loc = 0;
skip = 0;
if (global.keyitem[0] == arg0 && skip == 0)
{
loc = 0;
skip = 1;
}
if (global.keyitem[1] == arg0 && skip == 0)
{
loc = 1;
skip = 1;
}
if (global.keyitem[2] == arg0 && skip == 0)
{
loc = 2;
skip = 1;
}
if (global.keyitem[3] == arg0 && skip == 0)
{
loc = 3;
skip = 1;
}
if (global.keyitem[4] == arg0 && skip == 0)
{
loc = 4;
skip = 1;
}
if (global.keyitem[5] == arg0 && skip == 0)
{
loc = 5;
skip = 1;
}
if (global.keyitem[6] == arg0 && skip == 0)
{
loc = 6;
skip = 1;
}
if (global.keyitem[7] == arg0 && skip == 0)
{
loc = 7;
skip = 1;
}
if (global.keyitem[8] == arg0 && skip == 0)
{
loc = 8;
skip = 1;
}
if (global.keyitem[9] == arg0 && skip == 0)
{
loc = 9;
skip = 1;
}
if (global.keyitem[10] == arg0 && skip == 0)
{
loc = 10;
skip = 1;
}
if (global.keyitem[11] == arg0 && skip == 0)
{
loc = 11;
skip = 1;
}
scr_keyitemshift(loc, 0);
removed = 1;
}
} (4);
|
|
174
|
scr_keyitemremovescr_keyitemremove
function scr_keyitemremove(arg0)
{
removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1)
{
loc = 0;
skip = 0;
if (global.keyitem[0] == arg0 && skip == 0)
{
loc = 0;
skip = 1;
}
if (global.keyitem[1] == arg0 && skip == 0)
{
loc = 1;
skip = 1;
}
if (global.keyitem[2] == arg0 && skip == 0)
{
loc = 2;
skip = 1;
}
if (global.keyitem[3] == arg0 && skip == 0)
{
loc = 3;
skip = 1;
}
if (global.keyitem[4] == arg0 && skip == 0)
{
loc = 4;
skip = 1;
}
if (global.keyitem[5] == arg0 && skip == 0)
{
loc = 5;
skip = 1;
}
if (global.keyitem[6] == arg0 && skip == 0)
{
loc = 6;
skip = 1;
}
if (global.keyitem[7] == arg0 && skip == 0)
{
loc = 7;
skip = 1;
}
if (global.keyitem[8] == arg0 && skip == 0)
{
loc = 8;
skip = 1;
}
if (global.keyitem[9] == arg0 && skip == 0)
{
loc = 9;
skip = 1;
}
if (global.keyitem[10] == arg0 && skip == 0)
{
loc = 10;
skip = 1;
}
if (global.keyitem[11] == arg0 && skip == 0)
{
loc = 11;
skip = 1;
}
scr_keyitemshift(loc, 0);
removed = 1;
}
} (6);
|
|
175
|
scr_keyitemremovescr_keyitemremove
function scr_keyitemremove(arg0)
{
removed = 0;
scr_keyitemcheck(arg0);
if (haveit == 1)
{
loc = 0;
skip = 0;
if (global.keyitem[0] == arg0 && skip == 0)
{
loc = 0;
skip = 1;
}
if (global.keyitem[1] == arg0 && skip == 0)
{
loc = 1;
skip = 1;
}
if (global.keyitem[2] == arg0 && skip == 0)
{
loc = 2;
skip = 1;
}
if (global.keyitem[3] == arg0 && skip == 0)
{
loc = 3;
skip = 1;
}
if (global.keyitem[4] == arg0 && skip == 0)
{
loc = 4;
skip = 1;
}
if (global.keyitem[5] == arg0 && skip == 0)
{
loc = 5;
skip = 1;
}
if (global.keyitem[6] == arg0 && skip == 0)
{
loc = 6;
skip = 1;
}
if (global.keyitem[7] == arg0 && skip == 0)
{
loc = 7;
skip = 1;
}
if (global.keyitem[8] == arg0 && skip == 0)
{
loc = 8;
skip = 1;
}
if (global.keyitem[9] == arg0 && skip == 0)
{
loc = 9;
skip = 1;
}
if (global.keyitem[10] == arg0 && skip == 0)
{
loc = 10;
skip = 1;
}
if (global.keyitem[11] == arg0 && skip == 0)
{
loc = 11;
skip = 1;
}
scr_keyitemshift(loc, 0);
removed = 1;
}
} (7);
|
|
176
|
scr_keyitemgetscr_keyitemget
function scr_keyitemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.keyitem[i] == 0)
{
global.keyitem[i] = arg0;
break;
}
if (i == 12)
{
noroom = 1;
break;
}
i += 1;
}
script_execute(scr_keyiteminfo_all);
} (5);
|
|
177
|
global.typer = 6;
|
|
178
|
global.fc = 0;
|
|
179
|
snd_play(snd_item);
|
|
180
|
global.msg[0] = * (The Broken Key parts were fixed beyond recognition.)Wait for input ;
|
|
181
|
global.msg[1] = * (The Broken Key parts became the Prison Key.)Wait for input ;
|
|
182
|
global.msg[2] = * .... Hmm,Delay 11 this KEY has a terrible energy coming from it...Wait for input ;
|
|
183
|
global.msg[3] = * Please understand that I only fixed it...Wait for input ;
|
|
184
|
global.msg[4] = * So that you will never have to use it.Wait for inputClose Message ;
|
|
185
|
mydialoguer = instance_create(0, 0, obj_dialoguer);
|
|
186
|
con = 58;
|
|
187
|
}
|
|
188
|
}
|