|
1
|
if (curcon == 0)
|
|
2
|
{
|
|
3
|
if (curtain.myinteract == 3)
|
|
4
|
{
|
|
5
|
var contogoto = 1;
|
|
6
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
7
|
if (global.flag[1144 cooler_2_flirt] == 0)
|
|
8
|
{
|
|
9
|
msgsetloc(0, * (Someone is behind the curtain...Delay 11 silently.)Wait for inputClose Message"* (Someone is behind the curtain..^1. silently.)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_16_0" );
|
|
10
|
d_make();
|
|
11
|
}
|
|
12
|
else
|
|
13
|
{
|
|
14
|
contogoto = 2;
|
|
15
|
}
|
|
16
|
curcon = contogoto;
|
|
17
|
global.interact = 1;
|
|
18
|
}
|
|
19
|
}
|
|
20
|
if (curcon == 1 && !d_ex())
|
|
21
|
{
|
|
22
|
curcon = 0;
|
|
23
|
curtain.myinteract = 0;
|
|
24
|
with (obj_writer_stay)
|
|
25
|
instance_destroy();
|
|
26
|
global.interact = 0;
|
|
27
|
}
|
|
28
|
if (curcon == 2)
|
|
29
|
curcon = 3;
|
|
30
|
if (curcon == 3)
|
|
31
|
{
|
|
32
|
global.flag[1146 interacted_curtain_cooler] = 1;
|
|
33
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
34
|
if (global.flag[1144 cooler_2_flirt] == 1)
|
|
35
|
{
|
|
36
|
msgsetloc(0, * (Someone was watching you flirt with the watercooler.)Wait for input"* (Someone was watching you flirt with the watercooler.)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_49_0" );
|
|
37
|
msgnextloc(* How nice...Delay 11 her water...Delay 11 was always so nourishing...Delay 11 wasn't it...Wait for input"* How nice..^1. her water..^1. was always so nourishing..^1. wasn't it.../", "obj_dw_teevie_watercooler_slash_Step_0_gml_50_0" );
|
|
38
|
msgnextloc(* She...Delay 11 was so brave...Delay 11 to put herself out there like that.Wait for input"* She..^1. was so brave..^1. to put herself out there like that./", "obj_dw_teevie_watercooler_slash_Step_0_gml_51_0" );
|
|
39
|
msgnextloc(* I'm sure you two...Delay 11 will be...Delay 11 very happy together...Wait for input"* I'm sure you two..^1. will be..^1. very happy together.../", "obj_dw_teevie_watercooler_slash_Step_0_gml_52_0" );
|
|
40
|
msgnextloc(* (But,Delay 11 something about the words sounded sad.)Wait for inputClose Message"* (But^1, something about the words sounded sad.)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_53_0" );
|
|
41
|
global.flag[1144 cooler_2_flirt] = 3;
|
|
42
|
}
|
|
43
|
else if (global.flag[1144 cooler_2_flirt] == 2)
|
|
44
|
{
|
|
45
|
msgsetloc(0, * (Someone was watching you fight the watercooler...)Wait for input"* (Someone was watching you fight the watercooler...)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_59_0" );
|
|
46
|
msgnextloc(* (They seem relieved you didn't flirt with it.)Wait for inputClose Message"* (They seem relieved you didn't flirt with it.)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_60_0" );
|
|
47
|
}
|
|
48
|
else if (global.flag[1144 cooler_2_flirt] == 3)
|
|
49
|
{
|
|
50
|
msgsetloc(0, * (...)Wait for inputClose Message"* (...)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_64_0" );
|
|
51
|
}
|
|
52
|
d_make();
|
|
53
|
curcon = 4;
|
|
54
|
}
|
|
55
|
if (curcon == 4 && !d_ex())
|
|
56
|
{
|
|
57
|
curcon = 0;
|
|
58
|
with (obj_writer_stay)
|
|
59
|
instance_destroy();
|
|
60
|
global.interact = 0;
|
|
61
|
curtain.myinteract = 999;
|
|
62
|
}
|
|
63
|
if (watercon == 0)
|
|
64
|
{
|
|
65
|
var trig = 0;
|
|
66
|
with (obj_trigger_interact)
|
|
67
|
{
|
|
68
|
if (extflag == "watercooler")
|
|
69
|
{
|
|
70
|
if (place_meeting(x, y, obj_mainchara) || myinteract == 3)
|
|
71
|
{
|
|
72
|
other.des = id;
|
|
73
|
trig = true;
|
|
74
|
}
|
|
75
|
}
|
|
76
|
}
|
|
77
|
if (trig)
|
|
78
|
watercon = 1;
|
|
79
|
}
|
|
80
|
if (watercon == 1)
|
|
81
|
{
|
|
82
|
watertimer++;
|
|
83
|
if (watertimer == 1)
|
|
84
|
{
|
|
85
|
snd_play_x(snd_b, 1, 0.8);
|
|
86
|
with (des)
|
|
87
|
{
|
|
88
|
excl = instance_create(x + (sprite_width / 2), y - 20, obj_excblcon);
|
|
89
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (excl, 20);
|
|
90
|
}
|
|
91
|
global.interact = 1;
|
|
92
|
}
|
|
93
|
if (watertimer == 35)
|
|
94
|
{
|
|
95
|
snd_play(snd_tensionhorn);
|
|
96
|
snd_play_delay(snd_tensionhorn, 8, 1, 1.1);
|
|
97
|
}
|
|
98
|
if (watertimer == 65)
|
|
99
|
{
|
|
100
|
des.depth = -1;
|
|
101
|
global.flag[54 encounter_pointer] = encounterflag;
|
|
102
|
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;
var batmusic = "battle.ogg";
if (global.chapter == 3)
{
if (global.encounterno == 111 && room == room_board_2)
batmusic = "rudebuster_boss.ogg";
if (room == room_dw_b3bs_watercooler || room == room_dw_teevie_watercooler || room == room_dw_b3bs_zapper_b || room == room_dw_ranking_c)
batmusic = "battle_vapor.ogg";
if (room == room_dw_teevie_chef)
batmusic = "rouxls_battle.ogg";
}
global.batmusic[0] = snd_init(batmusic);
mus_volume(global.batmusic[1], 1, 0);
}
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])
{
if (global.monstertype[other.__ien] == 103Tenna)
{
x = camerax() + 510;
y = cameray() + 288;
scr_move_to_point_over_time(camerax() + 526, cameray() + 260, 20);
sprite_index = spr_tenna_point_up;
}
else if (global.monstertype[other.__ien] == 104Knight)
{
with (obj_ch3_PTB02_roaringknight)
stopsiner2 = true;
scr_move_to_point_over_time(global.monstermakex[__ien], obj_ch3_PTB02_roaringknight.ystart + (cos(obj_ch3_PTB02_roaringknight.siner2 / 8) * 8), 20);
}
else
{
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;
}
}
}
} (139, 0, des);
|
|
103
|
global.flag[1143 cooler_avoid_num] = 50;
|
|
104
|
watercon = 2;
|
|
105
|
watertimer = 0;
|
|
106
|
treasure2 = instance_create(treasure.x, treasure.y, obj_trigger_interact);
|
|
107
|
treasure2.sprite_index = spr_treasurebox;
|
|
108
|
treasure2.visible = true;
|
|
109
|
treasure2.issolid = true;
|
|
110
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (treasure2);
|
|
111
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} (treasure2);
|
|
112
|
trcon2 = 0;
|
|
113
|
trtimer2 = 0;
|
|
114
|
watermarker = 0;
|
|
115
|
treasure.x = -9999;
|
|
116
|
watercon = 999;
|
|
117
|
trcon = 3;
|
|
118
|
scr_delay_var("cleanup", 1, 120);
|
|
119
|
}
|
|
120
|
}
|
|
121
|
if (cleanup == 1)
|
|
122
|
{
|
|
123
|
cleanup = 0;
|
|
124
|
with (obj_trigger_interact)
|
|
125
|
{
|
|
126
|
if (extflag == "watercooler")
|
|
127
|
instance_destroy();
|
|
128
|
}
|
|
129
|
}
|
|
130
|
if (spikecon == 0 && fakespikes.myinteract == 3)
|
|
131
|
{
|
|
132
|
global.interact = 1;
|
|
133
|
spikecon = 1;
|
|
134
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
135
|
msgsetloc(0, * (It's a cardboard prop of spikes.)Wait for input"* (It's a cardboard prop of spikes.)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_166_0" );
|
|
136
|
msgnextloc(* (It's not blocking the way at all.)Wait for inputClose Message"* (It's not blocking the way at all.)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_167_0" );
|
|
137
|
d_make();
|
|
138
|
}
|
|
139
|
if (spikecon == 1 && !d_ex())
|
|
140
|
{
|
|
141
|
spikecon = 0;
|
|
142
|
fakespikes.myinteract = 0;
|
|
143
|
with (obj_writer_stay)
|
|
144
|
instance_destroy();
|
|
145
|
global.interact = 0;
|
|
146
|
}
|
|
147
|
var youopened = stringsetloc(* (You opened the treasure chest.)Wait for input"* (You opened the treasure chest.)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_181_0" );
|
|
148
|
if (trcon == 0 && treasure.myinteract == 3)
|
|
149
|
{
|
|
150
|
global.interact = 1;
|
|
151
|
trcon = 1;
|
|
152
|
treasure.image_index = 1;
|
|
153
|
snd_play(snd_locker);
|
|
154
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
155
|
msgset(0, youopened);
|
|
156
|
msgnextloc(* (Inside the treasure chest,Delay 11 there was a WATERCOOLER!)"* (Inside the treasure chest^1, there was a WATERCOOLER!)", "obj_dw_teevie_watercooler_slash_Step_0_gml_192_0" );
|
|
157
|
d_make();
|
|
158
|
}
|
|
159
|
if (trcon == 1)
|
|
160
|
{
|
|
161
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 1)
|
|
162
|
{
|
|
163
|
if (obj_writer.reachedend == 1)
|
|
164
|
{
|
|
165
|
trtimer = 0;
|
|
166
|
trcon = 2;
|
|
167
|
}
|
|
168
|
}
|
|
169
|
}
|
|
170
|
if (trcon == 2)
|
|
171
|
{
|
|
172
|
trtimer++;
|
|
173
|
if (trtimer == 1)
|
|
174
|
{
|
|
175
|
snd_play(snd_item);
|
|
176
|
watermarker = 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;
} (80, 220, spr_watercooler);
|
|
177
|
}
|
|
178
|
if (trtimer == 60)
|
|
179
|
{
|
|
180
|
watermarker.depth = -1;
|
|
181
|
global.flag[54 encounter_pointer] = encounterflag;
|
|
182
|
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;
var batmusic = "battle.ogg";
if (global.chapter == 3)
{
if (global.encounterno == 111 && room == room_board_2)
batmusic = "rudebuster_boss.ogg";
if (room == room_dw_b3bs_watercooler || room == room_dw_teevie_watercooler || room == room_dw_b3bs_zapper_b || room == room_dw_ranking_c)
batmusic = "battle_vapor.ogg";
if (room == room_dw_teevie_chef)
batmusic = "rouxls_battle.ogg";
}
global.batmusic[0] = snd_init(batmusic);
mus_volume(global.batmusic[1], 1, 0);
}
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])
{
if (global.monstertype[other.__ien] == 103Tenna)
{
x = camerax() + 510;
y = cameray() + 288;
scr_move_to_point_over_time(camerax() + 526, cameray() + 260, 20);
sprite_index = spr_tenna_point_up;
}
else if (global.monstertype[other.__ien] == 104Knight)
{
with (obj_ch3_PTB02_roaringknight)
stopsiner2 = true;
scr_move_to_point_over_time(global.monstermakex[__ien], obj_ch3_PTB02_roaringknight.ystart + (cos(obj_ch3_PTB02_roaringknight.siner2 / 8) * 8), 20);
}
else
{
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;
}
}
}
} (139, 0, watermarker);
|
|
183
|
global.flag[1143 cooler_avoid_num] = 50;
|
|
184
|
watercon = 2;
|
|
185
|
watertimer = 0;
|
|
186
|
k_d();
|
|
187
|
}
|
|
188
|
if (trtimer == 120)
|
|
189
|
{
|
|
190
|
watercon = 999;
|
|
191
|
with (obj_trigger_interact)
|
|
192
|
{
|
|
193
|
if (extflag == "watercooler")
|
|
194
|
instance_destroy();
|
|
195
|
}
|
|
196
|
treasure.myinteract = 0;
|
|
197
|
treasure2 = instance_create(320, 294, obj_trigger_interact);
|
|
198
|
treasure2.sprite_index = spr_treasurebox;
|
|
199
|
treasure2.visible = true;
|
|
200
|
treasure2.issolid = true;
|
|
201
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (treasure2);
|
|
202
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} (treasure2);
|
|
203
|
trcon2 = 0;
|
|
204
|
trtimer2 = 0;
|
|
205
|
watermarker = 0;
|
|
206
|
trcon = 3;
|
|
207
|
}
|
|
208
|
}
|
|
209
|
if (trcon == 3)
|
|
210
|
{
|
|
211
|
var treasureline = stringsetloc(* (The chest is empty.)Wait for inputClose Message"* (The chest is empty.)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_249_0" );
|
|
212
|
if (treasure.myinteract == 3)
|
|
213
|
{
|
|
214
|
msgset(0, treasureline);
|
|
215
|
d_make();
|
|
216
|
trcon = 4;
|
|
217
|
global.interact = 1;
|
|
218
|
}
|
|
219
|
if (treasure2.myinteract == 3)
|
|
220
|
{
|
|
221
|
treasure2.image_index = 1;
|
|
222
|
if (global.flag[1145] == 0)
|
|
223
|
{
|
|
224
|
snd_play(snd_impact);
|
|
225
|
global.interact = 1;
|
|
226
|
trcon = 8;
|
|
227
|
}
|
|
228
|
else if (global.flag[1145] == 1)
|
|
229
|
{
|
|
230
|
snd_play(snd_impact);
|
|
231
|
global.interact = 1;
|
|
232
|
trcon = 8.1;
|
|
233
|
}
|
|
234
|
else
|
|
235
|
{
|
|
236
|
global.interact = 1;
|
|
237
|
msgset(0, treasureline);
|
|
238
|
d_make();
|
|
239
|
trcon = 4;
|
|
240
|
}
|
|
241
|
}
|
|
242
|
}
|
|
243
|
if (trcon == 8)
|
|
244
|
{
|
|
245
|
snd_play(snd_impact);
|
|
246
|
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 == "tenna")
{
global.typer = 80;
if (global.fighting == 1)
global.typer = 81;
}
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;
... ("no_name");
|
|
247
|
msgsetloc(0, * (Inside the treasure chest...)Wait for input"* (Inside the treasure chest...)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_288_0" );
|
|
248
|
msgnextloc(* (.. there was another WATERCOOLER!)Wait for input"* (.. there was another \\cBWATERCOOLER\\cW!)/", "obj_dw_teevie_watercooler_slash_Step_0_gml_289_0" );
|
|
249
|
msgnextloc(* (But,Delay 11 there was also 500 POINTs)Wait for inputClose Message"* (But^1, there was also \\cY500 POINTs\\cW)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_290_0" );
|
|
250
|
with (d_make())
|
|
251
|
stay = 30;
|
|
252
|
trcon = 9;
|
|
253
|
}
|
|
254
|
if (trcon == 8.1)
|
|
255
|
{
|
|
256
|
msgset(0, youopened);
|
|
257
|
msgnextloc(* (inside was 500 POINTs!)Wait for inputClose Message"* (inside was \\cY500 POINTs\\cW!)/%", "obj_dw_teevie_watercooler_slash_Step_0_gml_298_0" );
|
|
258
|
with (d_make())
|
|
259
|
stay = 30;
|
|
260
|
trcon = 11;
|
|
261
|
}
|
|
262
|
if (trcon == 9)
|
|
263
|
{
|
|
264
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 1)
|
|
265
|
{
|
|
266
|
trcon = 10;
|
|
267
|
watermarker = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (treasure2.x, treasure2.y - 60, spr_watercooler);
|
|
268
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (watermarker);
|
|
269
|
watermarker.depth = treasure2.depth - 1;
|
|
270
|
}
|
|
271
|
}
|
|
272
|
if (trcon == 10)
|
|
273
|
{
|
|
274
|
if (scr_getmsgnoscr_getmsgno
function scr_getmsgno()
{
if (instance_exists(obj_writer))
return obj_writer.msgno;
} () == 2)
|
|
275
|
{
|
|
276
|
trcon = 11;
|
|
277
|
safe_delete(watermarker);
|
|
278
|
}
|
|
279
|
}
|
|
280
|
if (trcon == 11 && !d_ex())
|
|
281
|
{
|
|
282
|
var itemgetstring = scr_itemget_anytype_textscr_itemget_anytype_text
function scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0" );
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0" );
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0" );
if (_pocketed)
itemtypename = stringsetloc(STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0" );
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0" );
}
if (_itemtype == "money")
{
noroom = 0;
global.gold += _itemid;
itemtypename = stringsetloc(MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0" );
itemname = string(_itemid) + stringsetloc( Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0" );
}
if (_itemtype == "points")
{
noroom = 0;
global.flag[1044 points] += _itemid;
if (global.flag[1044 points] > 9999)
global.flag[1044 points] = 9999;
itemtypename = stringsetloc(SCORE"SCORE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_63_0" );
itemname = string(_itemid) + stringsetloc( POINTs" POINTs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_64_0" );
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
} (500, "points");
|
|
283
|
msgset(0, itemgetstring);
|
|
284
|
trcon = 4;
|
|
285
|
d_make();
|
|
286
|
if (noroom == 1)
|
|
287
|
{
|
|
288
|
close = true;
|
|
289
|
global.flag[1145] = 1;
|
|
290
|
}
|
|
291
|
else
|
|
292
|
{
|
|
293
|
global.flag[1145] = 2;
|
|
294
|
}
|
|
295
|
}
|
|
296
|
if (trcon == 4 && !d_ex())
|
|
297
|
{
|
|
298
|
if (close == true)
|
|
299
|
{
|
|
300
|
with (treasure2)
|
|
301
|
image_index = 0;
|
|
302
|
close = false;
|
|
303
|
}
|
|
304
|
trcon = 3;
|
|
305
|
treasure.myinteract = 0;
|
|
306
|
treasure2.myinteract = 0;
|
|
307
|
with (obj_writer_stay)
|
|
308
|
instance_destroy();
|
|
309
|
global.interact = 0;
|
|
310
|
}
|