|
1
|
if (con == 1 && myinteract == 3 && !d_ex())
|
|
2
|
{
|
|
3
|
myinteract = 0;
|
|
4
|
if (type == 1)
|
|
5
|
mousemarker = 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;
} (camerax() + 640 + 35 + 15, 278, spr_maus_idle);
|
|
6
|
if (type == 2)
|
|
7
|
{
|
|
8
|
if (room == room_dw_city_postbaseball_2)
|
|
9
|
{
|
|
10
|
mousemarker = 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;
} (camerax() + 640 + 35 + 15, 310, spr_maus_idle);
|
|
11
|
}
|
|
12
|
else
|
|
13
|
{
|
|
14
|
var yax = charaY() - 18;
|
|
15
|
if (yax < 240)
|
|
16
|
yax = 240;
|
|
17
|
mousemarker = 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;
} (camerax() + 640 + 35 + 15, yax, spr_maus_idle);
|
|
18
|
}
|
|
19
|
}
|
|
20
|
mousemarker.hspeed = -10;
|
|
21
|
with (obj_caterpillarchara)
|
|
22
|
{
|
|
23
|
if (name == "noelle")
|
|
24
|
{
|
|
25
|
fun = 1;
|
|
26
|
sprite_index = spr_noelle_shocked_dw;
|
|
27
|
}
|
|
28
|
}
|
|
29
|
snd_play(snd_mouse);
|
|
30
|
con = 2;
|
|
31
|
alarm[4] = 20; gml_Object_obj_mazecheese_Alarm_4.gml
con++;
|
|
32
|
}
|
|
33
|
if (con == 3)
|
|
34
|
{
|
|
35
|
with (mousemarker)
|
|
36
|
speed = 0;
|
|
37
|
with (obj_caterpillarchara)
|
|
38
|
{
|
|
39
|
if (name == "noelle")
|
|
40
|
{
|
|
41
|
fun = 0;
|
|
42
|
sprite_index = spr_noelle_walk_right_dw;
|
|
43
|
}
|
|
44
|
}
|
|
45
|
con = 4;
|
|
46
|
alarm[4] = 10; gml_Object_obj_mazecheese_Alarm_4.gml
con++;
|
|
47
|
}
|
|
48
|
if (con == 5 && !d_ex())
|
|
49
|
{
|
|
50
|
if (type == 1)
|
|
51
|
encounterflag = 536;
|
|
52
|
if (type == 2)
|
|
53
|
encounterflag = 537;
|
|
54
|
global.flag[54 encounter_pointer] = encounterflag;
|
|
55
|
if (type == 1)
|
|
56
|
scr_battlescr_battle
function scr_battle(arg0, arg1, arg2, arg3, arg4)
{
global.specialbattle = arg1;
global.encounterno = arg0;
if (global.flag[9 battle_music] != 2)
{
global.flag[9 battle_music] = 1;
global.batmusic[0] = snd_init("battle.ogg");
}
instance_create(0, 0, obj_battleback);
instance_create(0, 0, obj_encounterbasic);
__enemymarker[0] = arg2;
__enemymarker[1] = arg3;
__enemymarker[2] = arg4;
for (__ien = 0; __ien < 3; __ien++)
{
if (global.monstertype[__ien] != 0(None))
{
if (!i_ex(__enemymarker[__ien]))
{
__enemymarker[__ien] = scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien;
}
__enemymarker[__ien].__ien = __ien;
with (__enemymarker[__ien])
{
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom);
__doom.target = id;
__doom.alarm[0] = 25;
}
}
}
} (66, 0, mousemarker, 0, 0);
|
|
57
|
if (type == 2)
|
|
58
|
{
|
|
59
|
if (room == room_dw_city_postbaseball_2)
|
|
60
|
scr_battlescr_battle
function scr_battle(arg0, arg1, arg2, arg3, arg4)
{
global.specialbattle = arg1;
global.encounterno = arg0;
if (global.flag[9 battle_music] != 2)
{
global.flag[9 battle_music] = 1;
global.batmusic[0] = snd_init("battle.ogg");
}
instance_create(0, 0, obj_battleback);
instance_create(0, 0, obj_encounterbasic);
__enemymarker[0] = arg2;
__enemymarker[1] = arg3;
__enemymarker[2] = arg4;
for (__ien = 0; __ien < 3; __ien++)
{
if (global.monstertype[__ien] != 0(None))
{
if (!i_ex(__enemymarker[__ien]))
{
__enemymarker[__ien] = scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien;
}
__enemymarker[__ien].__ien = __ien;
with (__enemymarker[__ien])
{
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom);
__doom.target = id;
__doom.alarm[0] = 25;
}
}
}
} (79, 0, mousemarker, 0, 0);
|
|
61
|
else
|
|
62
|
scr_battlescr_battle
function scr_battle(arg0, arg1, arg2, arg3, arg4)
{
global.specialbattle = arg1;
global.encounterno = arg0;
if (global.flag[9 battle_music] != 2)
{
global.flag[9 battle_music] = 1;
global.batmusic[0] = snd_init("battle.ogg");
}
instance_create(0, 0, obj_battleback);
instance_create(0, 0, obj_encounterbasic);
__enemymarker[0] = arg2;
__enemymarker[1] = arg3;
__enemymarker[2] = arg4;
for (__ien = 0; __ien < 3; __ien++)
{
if (global.monstertype[__ien] != 0(None))
{
if (!i_ex(__enemymarker[__ien]))
{
__enemymarker[__ien] = scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien;
}
__enemymarker[__ien].__ien = __ien;
with (__enemymarker[__ien])
{
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom);
__doom.target = id;
__doom.alarm[0] = 25;
}
}
}
} (54, 0, mousemarker, 0, 0);
|
|
63
|
}
|
|
64
|
con = 6;
|
|
65
|
alarm[4] = 25; gml_Object_obj_mazecheese_Alarm_4.gml
con++;
|
|
66
|
}
|
|
67
|
if (con == 7)
|
|
68
|
{
|
|
69
|
if (x > 840)
|
|
70
|
{
|
|
71
|
with (obj_mazecheese)
|
|
72
|
{
|
|
73
|
image_index = 1;
|
|
74
|
type = 4;
|
|
75
|
con = 99;
|
|
76
|
}
|
|
77
|
global.flag[361 did_right_cheese_fight] = 1;
|
|
78
|
}
|
|
79
|
if (x < 840)
|
|
80
|
{
|
|
81
|
with (obj_mazecheese)
|
|
82
|
con = 0;
|
|
83
|
if (instance_exists(obj_controller_city_cheesemaze))
|
|
84
|
obj_controller_city_cheesemaze.cheeseCrushed = 1;
|
|
85
|
image_index = 1;
|
|
86
|
type = 4;
|
|
87
|
con = 8;
|
|
88
|
alarm[4] = 10; gml_Object_obj_mazecheese_Alarm_4.gml
con++;
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (con == 9 && !instance_exists(obj_battlecontroller))
|
|
92
|
{
|
|
93
|
con = 10;
|
|
94
|
alarm[4] = 30; gml_Object_obj_mazecheese_Alarm_4.gml
con++;
|
|
95
|
}
|
|
96
|
if (con == 10)
|
|
97
|
global.interact = 1;
|
|
98
|
if (con == 11)
|
|
99
|
{
|
|
100
|
global.interact = 1;
|
|
101
|
global.fe = 0;
|
|
102
|
if (global.flag[310 first_cheese_destroyed] == 0)
|
|
103
|
{
|
|
104
|
global.flag[310 first_cheese_destroyed] = 1;
|
|
105
|
if (scr_havecharscr_havechar
function scr_havechar(arg0)
{
var checker = arg0;
if (checker == "susie" || checker == "su" || checker == "s")
checker = 2;
if (checker == "ralsei" || checker == "ra" || checker == "r")
checker = 3;
if (checker == "noelle" || checker == "no" || checker == "n")
checker = 4;
_rreturn = 0;
if (global.char[0] == checker)
_rreturn = 1;
if (global.char[1] == checker)
_rreturn = 1;
if (global.char[2] == checker)
_rreturn = 1;
return _rreturn;
} (4))
|
|
106
|
{
|
|
107
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("noelle");
|
|
108
|
msgsetloc(0, Face 8* I...Delay 11 I never want to see cheese ever again...Wait for inputClose Message"\\E8* I..^1. I never want to see cheese ever again.../%", "obj_mazecheese_slash_Step_0_gml_97_0" );
|
|
109
|
}
|
|
110
|
else
|
|
111
|
{
|
|
112
|
global.flag[311 destroyed_cheese_alone] = 1;
|
|
113
|
scr_speakerscr_speaker
function scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if (global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("no_name");
|
|
114
|
msgsetloc(0, * (The cheese was destroyed in the heat of battle...)Wait for input"* (The cheese was destroyed in the heat of battle...)/", "obj_mazecheese_slash_Step_0_gml_102_0" );
|
|
115
|
msgnextloc(* (You realized you lost sight of what was important...)Wait for inputClose Message"* (You realized you lost sight of what was important...)/%", "obj_mazecheese_slash_Step_0_gml_103_0" );
|
|
116
|
}
|
|
117
|
d_make();
|
|
118
|
}
|
|
119
|
con = 12;
|
|
120
|
}
|
|
121
|
if (con == 12 && !d_ex())
|
|
122
|
{
|
|
123
|
global.interact = 0;
|
|
124
|
global.facing = 0;
|
|
125
|
con = 99;
|
|
126
|
type = 4;
|
|
127
|
}
|
|
128
|
if (con == 15 && !d_ex())
|
|
129
|
{
|
|
130
|
global.interact = 0;
|
|
131
|
global.facing = 0;
|
|
132
|
read = 0;
|
|
133
|
con = 0;
|
|
134
|
}
|
|
135
|
if (room == room_dw_city_postbaseball_2)
|
|
136
|
{
|
|
137
|
if (fallcon == 0)
|
|
138
|
{
|
|
139
|
snd_play(snd_fall);
|
|
140
|
fallcon++;
|
|
141
|
}
|
|
142
|
if (fallcon == 1)
|
|
143
|
{
|
|
144
|
if (y < 352)
|
|
145
|
{
|
|
146
|
vspeed += 1;
|
|
147
|
if (vspeed >= 12)
|
|
148
|
vspeed = 12;
|
|
149
|
}
|
|
150
|
if (y > 312)
|
|
151
|
{
|
|
152
|
vspeed = 0;
|
|
153
|
y = 312;
|
|
154
|
fallcon++;
|
|
155
|
}
|
|
156
|
}
|
|
157
|
}
|