|
1
|
if (battle_ready)
|
|
2
|
{
|
|
3
|
var trig = 0;
|
|
4
|
with (obj_trigger_interact)
|
|
5
|
{
|
|
6
|
if (extflag == "watercooler")
|
|
7
|
{
|
|
8
|
if (place_meeting(x, y, obj_mainchara) || myinteract == 3)
|
|
9
|
{
|
|
10
|
other.des = id;
|
|
11
|
trig = true;
|
|
12
|
}
|
|
13
|
}
|
|
14
|
}
|
|
15
|
if (trig)
|
|
16
|
{
|
|
17
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
18
|
battle_ready = false;
|
|
19
|
watercon = 1;
|
|
20
|
}
|
|
21
|
}
|
|
22
|
if (watercon == 1)
|
|
23
|
{
|
|
24
|
watertimer++;
|
|
25
|
if (watertimer == 1)
|
|
26
|
{
|
|
27
|
snd_play_x(snd_b, 1, 0.8);
|
|
28
|
with (watercooler)
|
|
29
|
{
|
|
30
|
excl = instance_create(x + 20, y - 24, obj_excblcon);
|
|
31
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (excl, 20);
|
|
32
|
}
|
|
33
|
global.interact = 1;
|
|
34
|
}
|
|
35
|
if (watertimer == 35)
|
|
36
|
{
|
|
37
|
snd_play(snd_tensionhorn);
|
|
38
|
snd_play_delay(snd_tensionhorn, 8, 1, 1.1);
|
|
39
|
}
|
|
40
|
if (watertimer == 65)
|
|
41
|
{
|
|
42
|
watercooler.depth = -1;
|
|
43
|
encounterno = 139;
|
|
44
|
encounterflag = 587;
|
|
45
|
global.flag[54 encounter_pointer] = encounterflag;
|
|
46
|
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;
}
}
}
} (encounterno, 0, watercooler);
|
|
47
|
watercon = 2;
|
|
48
|
watertimer = 0;
|
|
49
|
create_crater();
|
|
50
|
scr_delay_var("cleanup", 1, 120);
|
|
51
|
}
|
|
52
|
}
|
|
53
|
if (cleanup == 1)
|
|
54
|
{
|
|
55
|
cleanup = 0;
|
|
56
|
with (obj_trigger_interact)
|
|
57
|
instance_destroy();
|
|
58
|
}
|
|
59
|
if (watercon == 2 && i_ex(obj_battlecontroller))
|
|
60
|
{
|
|
61
|
var battle_end = false;
|
|
62
|
with (obj_battlecontroller)
|
|
63
|
{
|
|
64
|
if (intro == 2)
|
|
65
|
battle_end = true;
|
|
66
|
}
|
|
67
|
if (battle_end)
|
|
68
|
{
|
|
69
|
watercon = -1;
|
|
70
|
scr_flag_setscr_flag_set
function scr_flag_set(arg0, arg1)
{
global.flag[arg0] = arg1;
} (1188, global.flag[50 last_encounter_end]);
|
|
71
|
}
|
|
72
|
}
|
|
73
|
if (con == 1 && !d_ex() && global.interact == 0)
|
|
74
|
{
|
|
75
|
con = 2;
|
|
76
|
global.interact = 1;
|
|
77
|
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");
|
|
78
|
msgsetloc(0, * (It's a crater...)Wait for inputClose Message"* (It's a crater...)/%", "obj_room_ranking_c_slash_Step_0_gml_93_0" );
|
|
79
|
var _d = d_make();
|
|
80
|
_d.stay = 5;
|
|
81
|
}
|
|
82
|
if (con == 2 && !d_ex())
|
|
83
|
{
|
|
84
|
con = 3;
|
|
85
|
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");
|
|
86
|
msgsetloc(0, * (Inside was 200 POINTs!)Wait for inputClose Message"* (Inside was 200 POINTs!)/%", "obj_room_ranking_c_slash_Step_0_gml_103_0" );
|
|
87
|
var _d = d_make();
|
|
88
|
_d.stay = 5;
|
|
89
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("con", 4, 1);
|
|
90
|
display = instance_create(0, 0, obj_dw_points_fake_ui);
|
|
91
|
with (display)
|
|
92
|
display_points(200);
|
|
93
|
}
|
|
94
|
if (con == 4 && !d_ex())
|
|
95
|
{
|
|
96
|
con = 5;
|
|
97
|
snd_play(snd_item);
|
|
98
|
with (display)
|
|
99
|
show_point_increase();
|
|
100
|
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");
|
|
101
|
msgsetloc(0, * (200 POINTs was added to your SCORE.)Wait for inputClose Message"* (200 POINTs was added to your SCORE.)/%", "obj_room_ranking_c_slash_Step_0_gml_122_0" );
|
|
102
|
d_make();
|
|
103
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("con", 6, 1);
|
|
104
|
}
|
|
105
|
if (con == 6 && !d_ex() && i_ex(display) && !display.increase_points)
|
|
106
|
{
|
|
107
|
con = 0;
|
|
108
|
global.interact = 0;
|
|
109
|
scr_flag_setscr_flag_set
function scr_flag_set(arg0, arg1)
{
global.flag[arg0] = arg1;
} (1221, 1);
|
|
110
|
with (display)
|
|
111
|
instance_destroy();
|
|
112
|
}
|