|
1
|
if (con == 0)
|
|
2
|
{
|
|
3
|
var trig = 0;
|
|
4
|
with (obj_dw_teevie_cameras)
|
|
5
|
{
|
|
6
|
if (glitz_active)
|
|
7
|
trig = 1;
|
|
8
|
}
|
|
9
|
if (trig)
|
|
10
|
{
|
|
11
|
gray = lerp(gray, 1, 0.125);
|
|
12
|
fade = lerp(fade, 0.75, 0.125);
|
|
13
|
}
|
|
14
|
else
|
|
15
|
{
|
|
16
|
gray = lerp(gray, 0, 0.125);
|
|
17
|
fade = lerp(fade, 0, 0.125);
|
|
18
|
}
|
|
19
|
var _caught = false;
|
|
20
|
with (obj_dw_teevie_stealth_chaselamp)
|
|
21
|
{
|
|
22
|
if (caught == true)
|
|
23
|
_caught = true;
|
|
24
|
}
|
|
25
|
if (_caught)
|
|
26
|
{
|
|
27
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("fade", fade, 0, 4);
|
|
28
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("gray", gray, 0, 4);
|
|
29
|
timer = 0;
|
|
30
|
con = 1;
|
|
31
|
with (obj_dw_teevie_cameras)
|
|
32
|
disable = true;
|
|
33
|
}
|
|
34
|
}
|
|
35
|
if (con == 1)
|
|
36
|
{
|
|
37
|
var xloc = obj_mainchara.x + 46;
|
|
38
|
var sizex = 2;
|
|
39
|
if (global.facing == 3)
|
|
40
|
{
|
|
41
|
xloc = obj_mainchara.x - 8;
|
|
42
|
sizex = -2;
|
|
43
|
}
|
|
44
|
var yloc = obj_mainchara.bbox_bottom - 137;
|
|
45
|
timer++;
|
|
46
|
if (timer == 15)
|
|
47
|
{
|
|
48
|
zapper = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (xloc, cameray() - 120, spr_zapper_jump_noshadow, sizex, 2, 0, 5, undefined, obj_mainchara.depth);
|
|
49
|
zapper.gravity = 3;
|
|
50
|
scr_limitval_upper(zapper, "y", yloc, 30);
|
|
51
|
}
|
|
52
|
if (timer >= 15 && zapper.y >= yloc)
|
|
53
|
{
|
|
54
|
zapper.gravity = 0;
|
|
55
|
zapper.vspeed = 0;
|
|
56
|
zapper.speed = 0;
|
|
57
|
with (zapper)
|
|
58
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_index", 5, 8, 6, 3, "out");
|
|
59
|
snd_play_delay(snd_noise, 2, 0.8, 0.9);
|
|
60
|
con = 2;
|
|
61
|
timer = 0;
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (con == 2)
|
|
65
|
{
|
|
66
|
timer++;
|
|
67
|
if (timer == 3)
|
|
68
|
{
|
|
69
|
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;
... ("zapper");
|
|
70
|
msgsetloc(0, * Time for youse to skee-daddle!Wait for inputClose Message"* Time for youse to skee-daddle!/%", "obj_dw_teevie_stealth_slash_Step_0_gml_78_0" );
|
|
71
|
d_make();
|
|
72
|
timer = 0;
|
|
73
|
con = 3;
|
|
74
|
}
|
|
75
|
}
|
|
76
|
if (con == 3 && !d_ex())
|
|
77
|
{
|
|
78
|
if (global.flag[1149] == 0)
|
|
79
|
{
|
|
80
|
con = 4;
|
|
81
|
}
|
|
82
|
else
|
|
83
|
{
|
|
84
|
change = instance_create(x, y, obj_tvturnoff_manager);
|
|
85
|
change.kind = 1;
|
|
86
|
change.roomtarg = 161;
|
|
87
|
con = 999;
|
|
88
|
}
|
|
89
|
}
|
|
90
|
if (con == 4)
|
|
91
|
{
|
|
92
|
zapper.sprite_index = spr_zapper_jump;
|
|
93
|
if (zapper.image_xscale == -2)
|
|
94
|
{
|
|
95
|
zapper.image_xscale = 2;
|
|
96
|
zapper.x -= 134;
|
|
97
|
}
|
|
98
|
zapper.image_index = 0;
|
|
99
|
zapper.depth = -999;
|
|
100
|
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;
}
}
}
} (112, 0, zapper);
|
|
101
|
con = 5;
|
|
102
|
}
|
|
103
|
with (obj_caterpillarchara)
|
|
104
|
{
|
|
105
|
image_alpha = 1 - other.fade;
|
|
106
|
image_blend = merge_color(c_white, c_black, other.gray / 2);
|
|
107
|
}
|