1 |
if (con == 1 && myinteract == 3 && (!d_ex())) |
2 |
{ |
3 |
myinteract = 0 |
4 |
if (type == 1) |
5 |
mousemarker = scr_dark_markerscr_dark_markerfunction scr_dark_marker(argument0, argument1, argument2) //gml_Script_scr_dark_marker
{
thismarker = instance_create(argument0, argument1, obj_marker)
with (thismarker)
{
sprite_index = argument2
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 |
mousemarker = scr_dark_markerscr_dark_markerfunction scr_dark_marker(argument0, argument1, argument2) //gml_Script_scr_dark_marker
{
thismarker = instance_create(argument0, argument1, obj_marker)
with (thismarker)
{
sprite_index = argument2
image_speed = 0
image_xscale = 2
image_yscale = 2
}
return thismarker;
} ((camerax() + 640 + 35 + 15), 310, spr_maus_idle) |
10 |
else |
11 |
{ |
12 |
var yax = charaY() - 18 |
13 |
if (yax < 240) |
14 |
yax = 240 |
15 |
mousemarker = scr_dark_markerscr_dark_markerfunction scr_dark_marker(argument0, argument1, argument2) //gml_Script_scr_dark_marker
{
thismarker = instance_create(argument0, argument1, obj_marker)
with (thismarker)
{
sprite_index = argument2
image_speed = 0
image_xscale = 2
image_yscale = 2
}
return thismarker;
} ((camerax() + 640 + 35 + 15), yax, spr_maus_idle) |
16 |
} |
17 |
} |
18 |
mousemarker.hspeed = -10 |
19 |
with (obj_caterpillarchara) |
20 |
{ |
21 |
if (name == "noelle") |
22 |
{ |
23 |
fun = 1 |
24 |
sprite_index = spr_noelle_shocked_dw |
25 |
} |
26 |
} |
27 |
snd_play(snd_mouse) |
28 |
con = 2 |
29 |
alarm[4] = 20 |
30 |
} |
31 |
if (con == 3) |
32 |
{ |
33 |
with (mousemarker) |
34 |
speed = 0 |
35 |
with (obj_caterpillarchara) |
36 |
{ |
37 |
if (name == "noelle") |
38 |
{ |
39 |
fun = 0 |
40 |
sprite_index = spr_noelle_walk_right_dw |
41 |
} |
42 |
} |
43 |
con = 4 |
44 |
alarm[4] = 10 |
45 |
} |
46 |
if (con == 5 && (!d_ex())) |
47 |
{ |
48 |
if (type == 1) |
49 |
encounterflag = 536 |
50 |
if (type == 2) |
51 |
encounterflag = 537 |
52 |
global.flag[54 encounter_pointer] = encounterflag |
53 |
if (type == 1) |
54 |
scr_battlescr_battlefunction scr_battle(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_battle
{
global.specialbattle = argument1
global.encounterno = argument0
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] = argument2
__enemymarker[1] = argument3
__enemymarker[2] = argument4
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, obj_sneo_friedpipis, obj_sneo_friedpipis) |
55 |
if (type == 2) |
56 |
{ |
57 |
if (room == room_dw_city_postbaseball_2) |
58 |
scr_battlescr_battlefunction scr_battle(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_battle
{
global.specialbattle = argument1
global.encounterno = argument0
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] = argument2
__enemymarker[1] = argument3
__enemymarker[2] = argument4
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, obj_sneo_friedpipis, obj_sneo_friedpipis) |
59 |
else |
60 |
scr_battlescr_battlefunction scr_battle(argument0, argument1, argument2, argument3, argument4) //gml_Script_scr_battle
{
global.specialbattle = argument1
global.encounterno = argument0
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] = argument2
__enemymarker[1] = argument3
__enemymarker[2] = argument4
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, obj_sneo_friedpipis, obj_sneo_friedpipis) |
61 |
} |
62 |
con = 6 |
63 |
alarm[4] = 25 |
64 |
} |
65 |
if (con == 7) |
66 |
{ |
67 |
if (x > 840) |
68 |
{ |
69 |
with (obj_mazecheese) |
70 |
{ |
71 |
image_index = 1 |
72 |
type = 4 |
73 |
con = 99 |
74 |
} |
75 |
global.flag[361 did_right_cheese_fight] = 1 |
76 |
} |
77 |
if (x < 840) |
78 |
{ |
79 |
with (obj_mazecheese) |
80 |
con = 0 |
81 |
if instance_exists(obj_controller_city_cheesemaze) |
82 |
obj_controller_city_cheesemaze.cheeseCrushed = 1 |
83 |
image_index = 1 |
84 |
type = 4 |
85 |
con = 8 |
86 |
alarm[4] = 10 |
87 |
} |
88 |
} |
89 |
if (con == 9 && (!instance_exists(obj_battlecontroller))) |
90 |
{ |
91 |
con = 10 |
92 |
alarm[4] = 30 |
93 |
} |
94 |
if (con == 10) |
95 |
global.interact = 1 |
96 |
if (con == 11) |
97 |
{ |
98 |
global.interact = 1 |
99 |
global.fe = 0 |
100 |
if (global.flag[310 touched_cheese_maze] == 0) |
101 |
{ |
102 |
global.flag[310 touched_cheese_maze] = 1 |
103 |
if scr_havecharscr_havecharfunction scr_havechar(argument0) //gml_Script_scr_havechar
{
var checker = argument0
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) |
104 |
{ |
105 |
scr_speakerscr_speakerfunction scr_speaker(argument0) //gml_Script_scr_speaker
{
_speaker = argument0
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") |
106 |
Face 8* I...Delay 11 I never want to see cheese ever again...Wait for inputClose Messagemsgsetloc(0, "\\E8* I..^1. I never want to see cheese ever again.../%", "obj_mazecheese_slash_Step_0_gml_97_0") |
107 |
} |
108 |
else |
109 |
{ |
110 |
global.flag[311 destroyed_cheese_alone] = 1 |
111 |
scr_speakerscr_speakerfunction scr_speaker(argument0) //gml_Script_scr_speaker
{
_speaker = argument0
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") |
112 |
* (The cheese was destroyed in the heat of battle...)Wait for inputmsgsetloc(0, "* (The cheese was destroyed in the heat of battle...)/", "obj_mazecheese_slash_Step_0_gml_102_0") |
113 |
* (You realized you lost sight of what was important...)Wait for inputClose Messagemsgnextloc("* (You realized you lost sight of what was important...)/%", "obj_mazecheese_slash_Step_0_gml_103_0") |
114 |
} |
115 |
d_make() |
116 |
} |
117 |
con = 12 |
118 |
} |
119 |
if (con == 12 && (!d_ex())) |
120 |
{ |
121 |
global.interact = 0 |
122 |
global.facing = 0 |
123 |
con = 99 |
124 |
type = 4 |
125 |
} |
126 |
if (con == 15 && (!d_ex())) |
127 |
{ |
128 |
global.interact = 0 |
129 |
global.facing = 0 |
130 |
read = 0 |
131 |
con = 0 |
132 |
} |
133 |
if (room == room_dw_city_postbaseball_2) |
134 |
{ |
135 |
if (fallcon == 0) |
136 |
{ |
137 |
snd_play(snd_fall) |
138 |
fallcon++ |
139 |
} |
140 |
if (fallcon == 1) |
141 |
{ |
142 |
if (y < 352) |
143 |
{ |
144 |
vspeed += 1 |
145 |
if (vspeed >= 12) |
146 |
vspeed = 12 |
147 |
} |
148 |
if (y > 312) |
149 |
{ |
150 |
vspeed = 0 |
151 |
y = 312 |
152 |
fallcon++ |
153 |
} |
154 |
} |
155 |
} |