|
1
|
if (init == 0)
|
|
2
|
{
|
|
3
|
init = 1;
|
|
4
|
instance_create(x, y, o_coaster_controller);
|
|
5
|
alarm[5] = 1; gml_Object_obj_berdlyb_enemy_Alarm_5.gml
with (obj_ch2_scene11a)
{
with (coaster_berdly)
visible = false;
with (coaster_kris)
{
con = 0;
actor.sprite_index = spr_krisr_dark;
character_sprite = spr_krisr_dark;
visible = false;
}
with (coaster_susie)
{
con = 0;
actor.sprite_index = spr_susie_walk_right_dw;
character_sprite = spr_susie_walk_right_dw;
visible = false;
}
with (coaster_ralsei)
{
con = 0;
actor.sprite_index = spr_ralsei_walk_right;
character_sprite = spr_ralsei_walk_right;
visible = false;
}
}
with (obj_heroparent)
visible = true;
with (o_coaster_hero)
visible = true;
with (o_coaster_hero_back)
visible = true;
with (o_coaster_berdly)
visible = true;
with (obj_berdlyb_enemy)
visible = true;
with (obj_coaster)
stop_siner = 0;
|
|
6
|
}
|
|
7
|
if (global.monster[myself] == 1)
|
|
8
|
{
|
|
9
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk") && talked == 0 && bumpwait == 0 && endcon == 0)
|
|
10
|
{
|
|
11
|
scr_randomtargetscr_randomtarget
function scr_randomtarget()
{
abletotarget = 1;
if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0)
abletotarget = 0;
mytarget = choose(0, 1, 2);
if (abletotarget == 1)
{
while (global.charcantarget[mytarget] == 0)
mytarget = choose(0, 1, 2);
}
else
{
mytarget = 3;
}
global.targeted[mytarget] = 1;
if (global.chapter >= 2 && mytarget != 3)
{
if (global.charcantarget[0])
global.targeted[0] = 1;
if (global.charcantarget[1])
global.targeted[1] = 1;
if (global.charcantarget[2])
global.targeted[2] = 1;
mytarget = 4;
}
} ();
|
|
12
|
if (!instance_exists(obj_darkener))
|
|
13
|
instance_create(0, 0, obj_darkener);
|
|
14
|
if (nitro > 0)
|
|
15
|
nitro -= 1;
|
|
16
|
if (premonition > 0)
|
|
17
|
premonition -= 1;
|
|
18
|
talkedcon = 0;
|
|
19
|
talktimer = 0;
|
|
20
|
global.typer = 69;
|
|
21
|
if (attackorder == 0)
|
|
22
|
rr = 0;
|
|
23
|
if (attackorder == 1)
|
|
24
|
rr = 2;
|
|
25
|
if (attackorder == 2)
|
|
26
|
{
|
|
27
|
rr = 1;
|
|
28
|
attackorder = -1;
|
|
29
|
}
|
|
30
|
attackorder++;
|
|
31
|
if (rr == 0)
|
|
32
|
msgsetloc(0, Partake, Kris! The zephyr of punishment!Wait for inputClose Message"Partake, Kris! The&zephyr of punishment!/%", "obj_berdlyb_enemy_slash_Step_0_gml_29_0_b" );
|
|
33
|
if (rr == 1)
|
|
34
|
msgsetloc(0, Holy Halbird! Grant me strength!Wait for inputClose Message"Holy Halbird!&Grant me strength!/%", "obj_berdlyb_enemy_slash_Step_0_gml_30_0" );
|
|
35
|
if (rr == 2)
|
|
36
|
msgsetloc(0, Look, Susie! The closest you'll ever get to an "A"!Wait for inputClose Message"Look, Susie! The&closest you'll ever&get to an \"A\"!/%", "obj_berdlyb_enemy_slash_Step_0_gml_31_0" );
|
|
37
|
if ((bumpedpast50percent == 0 && global.mercymod[myself] > 50 && balloonorder > 4) || (bumpedpast50percent == 0 && global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5) && balloonorder > 4))
|
|
38
|
{
|
|
39
|
msgsetloc(0, What? My car is breaking!?Wait for inputClose Message"What? My car&is breaking!?/%", "obj_berdlyb_enemy_slash_Step_0_gml_42_0" );
|
|
40
|
bumpedpast50percent = 1;
|
|
41
|
ballooncon = 2;
|
|
42
|
attackorder--;
|
|
43
|
}
|
|
44
|
else if (bumpedfirsttime == 0 && global.mercymod[myself] > 0 && balloonorder > 4)
|
|
45
|
{
|
|
46
|
msgsetloc(0, Ha! Go ahead, "bump" me, you bumpbarians!Wait for inputClose Message"Ha! Go ahead, \"bump\"&me, you bumpbarians!/%", "obj_berdlyb_enemy_slash_Step_0_gml_36_0" );
|
|
47
|
bumpedfirsttime = 1;
|
|
48
|
ballooncon = 1;
|
|
49
|
}
|
|
50
|
else if (forcedefaultballoon == 0)
|
|
51
|
{
|
|
52
|
if (balloonorder == 0)
|
|
53
|
msgsetloc(0, Kris, I get why you're getting in my way! You're jealous, aren't you!?Wait for inputClose Message"Kris, I get why&you're getting in my&way! You're jealous,&aren't you!?/%", "obj_berdlyb_enemy_slash_Step_0_gml_48_0" );
|
|
54
|
if (balloonorder == 1)
|
|
55
|
msgsetloc(0, Kris, you're tired of being the class No.3, gazing distantly at Noelle and I's fruited figures...Wait for inputClose Message"Kris, you're tired&of being the class&No.3, gazing distantly&at Noelle and I's&fruited figures.../%", "obj_berdlyb_enemy_slash_Step_0_gml_49_0" );
|
|
56
|
if (balloonorder == 2)
|
|
57
|
msgsetloc(0, So rather than ever STUDYING, you'd enlist SUSIE to take us down!Wait for inputClose Message"So rather than ever&STUDYING, you'd enlist&SUSIE to take us down!/%", "obj_berdlyb_enemy_slash_Step_0_gml_50_0" );
|
|
58
|
if (balloonorder == 3)
|
|
59
|
msgsetloc(0, Kris... you are truly depraved. Playing in the mud with the class hellion.Wait for inputClose Message"Kris... you are truly&depraved. Playing&in the mud with&the class hellion./%", "obj_berdlyb_enemy_slash_Step_0_gml_51_0" );
|
|
60
|
if (balloonorder == 4)
|
|
61
|
{
|
|
62
|
msgsetloc(0, But Kris, I am a kind and brave hero! If you come to our side...Wait for inputClose Message"But Kris, I am&a kind and brave&hero! If you come&to our side.../%", "obj_berdlyb_enemy_slash_Step_0_gml_52_0" );
|
|
63
|
ballooncon = 3;
|
|
64
|
}
|
|
65
|
balloonorder++;
|
|
66
|
}
|
|
67
|
forcedefaultballoon = 0;
|
|
68
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
69
|
if (ballooncon == 0)
|
|
70
|
{
|
|
71
|
talked = 1;
|
|
72
|
talktimer = 0;
|
|
73
|
}
|
|
74
|
else
|
|
75
|
{
|
|
76
|
talked = 0.5;
|
|
77
|
talktimer = 0;
|
|
78
|
}
|
|
79
|
}
|
|
80
|
if (talked == 0.5)
|
|
81
|
{
|
|
82
|
talktimer++;
|
|
83
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
84
|
{
|
|
85
|
with (obj_writer)
|
|
86
|
instance_destroy();
|
|
87
|
if (ballooncon == 1)
|
|
88
|
msgsetloc(0, I'll show you "bumper cars" is a game of INTELLECT, not skill!Wait for inputClose Message"I'll show you&\"bumper cars\" is a&game of INTELLECT,¬ skill!/%", "obj_berdlyb_enemy_slash_Step_0_gml_80_0" );
|
|
89
|
if (ballooncon == 2)
|
|
90
|
msgsetloc(0, Fools! This is Smart Smoke! It means my car is getting stronger!Wait for inputClose Message"Fools! This is&Smart Smoke! It means&my car is getting&stronger!/%", "obj_berdlyb_enemy_slash_Step_0_gml_89_0" );
|
|
91
|
if (ballooncon == 3)
|
|
92
|
msgsetloc(0, You may be a slightly less distant No. 3! Haha... slightly.Wait for inputClose Message"You may be a&slightly less&distant No. 3!&Haha... slightly./%", "obj_berdlyb_enemy_slash_Step_0_gml_82_0" );
|
|
93
|
global.typer = 69;
|
|
94
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
95
|
if (ballooncon != 2)
|
|
96
|
{
|
|
97
|
ballooncon = 0;
|
|
98
|
talked = 0.6;
|
|
99
|
alarm[6] = 1; gml_Object_obj_berdlyb_enemy_Alarm_6.gml
talked = 1;
|
|
100
|
}
|
|
101
|
else
|
|
102
|
{
|
|
103
|
ballooncon = 0;
|
|
104
|
talked = 0.7;
|
|
105
|
}
|
|
106
|
}
|
|
107
|
}
|
|
108
|
if (talked == 0.7)
|
|
109
|
{
|
|
110
|
talktimer++;
|
|
111
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
112
|
{
|
|
113
|
talked = 0;
|
|
114
|
forcedefaultballoon = 1;
|
|
115
|
}
|
|
116
|
}
|
|
117
|
if (talked == 1 && scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("enemytalk"))
|
|
118
|
{
|
|
119
|
talktimer++;
|
|
120
|
if ((button3_p() && talktimer > 15) || !i_ex(obj_writer))
|
|
121
|
{
|
|
122
|
with (obj_writer)
|
|
123
|
instance_destroy();
|
|
124
|
talkedcon = 1;
|
|
125
|
}
|
|
126
|
if (talkedcon == 1)
|
|
127
|
{
|
|
128
|
rtimer = 0;
|
|
129
|
scr_blconskipscr_blconskip
function scr_blconskip(arg0)
{
if (arg0 >= 0)
{
if (button1_p() && talktimer > arg0)
talktimer = talkmax;
talktimer += 1;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
else if (arg0 == -1)
{
if (instance_exists(obj_writer) == false)
global.mnfight = 2;
}
else if (arg0 == -2)
{
talktimer += 1;
if (talktimer > 15)
talktimer = talkmax;
if (talktimer >= talkmax)
{
with (obj_writer)
instance_destroy();
global.mnfight = 2;
}
}
} (-1);
|
|
130
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets"))
|
|
131
|
{
|
|
132
|
if (!instance_exists(obj_moveheart) && !instance_exists(obj_heart))
|
|
133
|
scr_moveheartscr_moveheart
function scr_moveheart()
{
global.inv = 0;
if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy))
return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} ();
|
|
134
|
if (!instance_exists(obj_growtangle))
|
|
135
|
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
|
|
136
|
if (difficulty == 1 && rr == 0)
|
|
137
|
obj_growtangle.target_angle += 45;
|
|
138
|
}
|
|
139
|
}
|
|
140
|
}
|
|
141
|
if (scr_isphasescr_isphase
function scr_isphase(arg0)
{
__isphase = 0;
if (arg0 == "menu" && global.myfight == 0)
__isphase = 1;
if (arg0 == "acting" && global.myfight == 3)
__isphase = 1;
if (arg0 == "victory" && global.myfight == 7)
__isphase = 1;
if (arg0 == "attack" || arg0 == "fight")
{
if (global.myfight == 1)
__isphase = 1;
}
if (arg0 == "spell" || arg0 == "item")
{
if (global.myfight == 4)
__isphase = 1;
}
if (arg0 == "enemytalk" || arg0 == "balloon")
{
if (global.mnfight == 1)
__isphase = 1;
}
if (arg0 == "enemyattack" || arg0 == "bullets")
{
if (global.mnfight == 2)
__isphase = 1;
}
return __isphase;
} ("bullets") && attacked == 0)
|
|
142
|
{
|
|
143
|
rtimer += 1;
|
|
144
|
if (rtimer == 16)
|
|
145
|
{
|
|
146
|
if (rr == 0)
|
|
147
|
{
|
|
148
|
global.monsterattackname[myself] = "Tornado";
|
|
149
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
150
|
dc.type = 8;
|
|
151
|
dc.difficulty = 0;
|
|
152
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (210);
|
|
153
|
}
|
|
154
|
else if (rr == 1)
|
|
155
|
{
|
|
156
|
global.monsterattackname[myself] = "SpearBlast";
|
|
157
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
158
|
dc.type = 9;
|
|
159
|
dc.difficulty = 1;
|
|
160
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (200);
|
|
161
|
}
|
|
162
|
else
|
|
163
|
{
|
|
164
|
global.monsterattackname[myself] = "Chirashi";
|
|
165
|
dc = scr_bulletspawnerscr_bulletspawner
function scr_bulletspawner(arg0, arg1, arg2)
{
__dc = instance_create(arg0, arg1, arg2);
__dc.creator = myself;
__dc.target = mytarget;
__dc.damage = global.monsterat[myself] * 5;
return __dc;
} (x, y, obj_dbulletcontroller);
|
|
166
|
dc.type = 10;
|
|
167
|
dc.difficulty = 2;
|
|
168
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (180);
|
|
169
|
}
|
|
170
|
turns += 1;
|
|
171
|
global.typer = 6;
|
|
172
|
global.fc = 0;
|
|
173
|
rr = choose(0, 1, 2, 3, 4, 5);
|
|
174
|
if (rr == 0)
|
|
175
|
global.battlemsg[0] = stringsetloc(* Berdly calls Queen for help! * But Queen is pretending to be on the phone!"* Berdly calls Queen for help!&* But Queen is pretending to be on the phone!", "obj_berdlyb_enemy_slash_Step_0_gml_158_0" );
|
|
176
|
if (rr == 1)
|
|
177
|
global.battlemsg[0] = stringsetloc(* Berdly asks Queen what snacks they have at home! * Queen nods! She has earbuds in!"* Berdly asks Queen what snacks they have at home!&* Queen nods! She has earbuds in!", "obj_berdlyb_enemy_slash_Step_0_gml_159_0" );
|
|
178
|
if (rr == 2)
|
|
179
|
global.battlemsg[0] = stringsetloc(* Berdly gives the secret sign! * But Queen is busy with a coloring book!"* Berdly gives the secret sign!&* But Queen is busy with a coloring book!", "obj_berdlyb_enemy_slash_Step_0_gml_160_0" );
|
|
180
|
if (rr == 3)
|
|
181
|
global.battlemsg[0] = stringsetloc(* Berdly summons Queen! * Queen calls in sick!"* Berdly summons Queen!&* Queen calls in sick!", "obj_berdlyb_enemy_slash_Step_0_gml_161_0" );
|
|
182
|
if (rr == 4)
|
|
183
|
global.battlemsg[0] = stringsetloc(* Berdly shows Queen his card collection! * Queen escaped successfully."* Berdly shows Queen his card collection!&* Queen escaped successfully.", "obj_berdlyb_enemy_slash_Step_0_gml_162_0" );
|
|
184
|
if (rr == 5)
|
|
185
|
global.battlemsg[0] = stringsetloc(* Smells like fried chicken."* Smells like fried chicken.", "obj_berdlyb_enemy_slash_Step_0_gml_163_0" );
|
|
186
|
if (global.mercymod[myself] > 75)
|
|
187
|
global.battlemsg[0] = stringsetloc(* Berdly's coaster car thing looks sick."* Berdly's coaster car thing looks sick.", "obj_berdlyb_enemy_slash_Step_0_gml_167_0_b" );
|
|
188
|
if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.25))
|
|
189
|
global.battlemsg[0] = stringsetloc(* Berdly asks Queen for healing! * She says "You're Doing Great Honey""* Berdly asks Queen for healing!&* She says \"You're Doing Great Honey\"", "obj_berdlyb_enemy_slash_Step_0_gml_171_0" );
|
|
190
|
attacked = 1;
|
|
191
|
}
|
|
192
|
else
|
|
193
|
{
|
|
194
|
scr_turntimerscr_turntimer
function scr_turntimer(arg0)
{
if (global.turntimer < arg0)
global.turntimer = arg0;
} (120);
|
|
195
|
}
|
|
196
|
}
|
|
197
|
}
|
|
198
|
if (global.myfight == 3)
|
|
199
|
{
|
|
200
|
xx = __view_get(e__VW.XView, 0);
|
|
201
|
yy = __view_get(e__VW.YView, 0);
|
|
202
|
if (acting == 1 && actcon == 0)
|
|
203
|
{
|
|
204
|
actcon = 1;
|
|
205
|
msgsetloc(0, * BERDLY - Go! Use your roller coaster cars to play "bump of chicken"!Wait for inputClose Message"* BERDLY - Go! Use your roller coaster cars to play \"bump of chicken\"!/%", "obj_berdlyb_enemy_slash_Step_0_gml_123_0" );
|
|
206
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
207
|
}
|
|
208
|
if (acting == 2 && actcon == 0)
|
|
209
|
{
|
|
210
|
if (actingsus == 1 && actingral == 1)
|
|
211
|
{
|
|
212
|
dialoguecon = 1;
|
|
213
|
}
|
|
214
|
else if (actingsus == 1 && actingral != 1)
|
|
215
|
{
|
|
216
|
msgsetloc(0, * You and Susie will attempt to bump into Berdly's car!Wait for inputClose Message"* You and Susie will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_130_0" );
|
|
217
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
218
|
}
|
|
219
|
else if (actingsus != 1 && actingral == 1)
|
|
220
|
{
|
|
221
|
msgsetloc(0, * You and Ralsei will attempt to bump into Berdly's car!Wait for inputClose Message"* You and Ralsei will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_131_0" );
|
|
222
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
223
|
}
|
|
224
|
else
|
|
225
|
{
|
|
226
|
msgsetloc(0, * You will attempt to bump into Berdly's car!Wait for inputClose Message"* You will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_132_0" );
|
|
227
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
228
|
}
|
|
229
|
kriscoaster = 1;
|
|
230
|
acting = 0;
|
|
231
|
actcon = 1;
|
|
232
|
rideactgo = 1;
|
|
233
|
if (actingsus == 2)
|
|
234
|
suscoaster = 1;
|
|
235
|
if (actingral == 2)
|
|
236
|
ralcoaster = 1;
|
|
237
|
}
|
|
238
|
if (acting == 3 && actcon == 0)
|
|
239
|
{
|
|
240
|
dialoguecon = 1;
|
|
241
|
acting = 0;
|
|
242
|
actcon = 1;
|
|
243
|
rideactgo = 1;
|
|
244
|
kriscoaster = 1;
|
|
245
|
suscoaster = 1;
|
|
246
|
ralcoaster = 1;
|
|
247
|
}
|
|
248
|
if (acting == 4 && actcon == 0)
|
|
249
|
{
|
|
250
|
dialoguecon = 1;
|
|
251
|
acting = 0;
|
|
252
|
actcon = 1;
|
|
253
|
rideactgo = 1;
|
|
254
|
mrboneswildride = 1;
|
|
255
|
kriscoaster = 1;
|
|
256
|
suscoaster = 1;
|
|
257
|
ralcoaster = 1;
|
|
258
|
}
|
|
259
|
if (actingsus == 1 && actconsus == 1)
|
|
260
|
{
|
|
261
|
if (bumpactstarted == 1)
|
|
262
|
{
|
|
263
|
acting = 0;
|
|
264
|
actcon = 1;
|
|
265
|
actingsus = 0;
|
|
266
|
actconsus = 0;
|
|
267
|
}
|
|
268
|
else
|
|
269
|
{
|
|
270
|
if (actingral != 1 && rideactgo == 0)
|
|
271
|
{
|
|
272
|
msgsetloc(0, * Susie will attempt to bump into Berdly's car!Wait for inputClose Message"* Susie will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_186_0" );
|
|
273
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
274
|
}
|
|
275
|
if (actingral == 1 && rideactgo == 0)
|
|
276
|
{
|
|
277
|
msgsetloc(0, * Susie and Ralsei will attempt to bump into Berdly's car!Wait for inputClose Message"* Susie and Ralsei will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_187_0" );
|
|
278
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
279
|
}
|
|
280
|
acting = 0;
|
|
281
|
actcon = 1;
|
|
282
|
rideactgo = 1;
|
|
283
|
actconsus = 0;
|
|
284
|
suscoaster = 1;
|
|
285
|
if (acting == 2)
|
|
286
|
kriscoaster = 1;
|
|
287
|
if (actingral == 2)
|
|
288
|
ralcoaster = 1;
|
|
289
|
}
|
|
290
|
}
|
|
291
|
if (actingral == 1 && actconral == 1)
|
|
292
|
{
|
|
293
|
if (bumpactstarted == 1)
|
|
294
|
{
|
|
295
|
acting = 0;
|
|
296
|
actcon = 1;
|
|
297
|
actconral = 0;
|
|
298
|
actingral = 0;
|
|
299
|
}
|
|
300
|
else
|
|
301
|
{
|
|
302
|
if (actingsus != 1 && rideactgo == 0)
|
|
303
|
{
|
|
304
|
msgsetloc(0, * Ralsei will attempt to bump into Berdly's car!Wait for inputClose Message"* Ralsei will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_221_0" );
|
|
305
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
306
|
}
|
|
307
|
acting = 0;
|
|
308
|
actcon = 1;
|
|
309
|
rideactgo = 1;
|
|
310
|
actconral = 0;
|
|
311
|
ralcoaster = 1;
|
|
312
|
if (acting == 2)
|
|
313
|
kriscoaster = 1;
|
|
314
|
if (actingsus == 2)
|
|
315
|
suscoaster = 1;
|
|
316
|
}
|
|
317
|
}
|
|
318
|
if (dialoguecon != 0)
|
|
319
|
{
|
|
320
|
if (dialoguecon == 1)
|
|
321
|
msgsetloc(0, * The whole gang will attempt to bump into Berdly's car!Wait for inputClose Message"* The whole gang will attempt to bump into Berdly's car!/%", "obj_berdlyb_enemy_slash_Step_0_gml_306_0" );
|
|
322
|
if (dialoguecon == 2)
|
|
323
|
{
|
|
324
|
}
|
|
325
|
if (dialoguecon == 3)
|
|
326
|
{
|
|
327
|
}
|
|
328
|
if (dialoguecon == 4)
|
|
329
|
{
|
|
330
|
}
|
|
331
|
if (dialoguecon == 5)
|
|
332
|
{
|
|
333
|
}
|
|
334
|
scr_battletext_defaultscr_battletext_default
function scr_battletext_default()
{
global.fc = 0;
global.typer = 4;
scr_battletext();
return battlewriter;
} ();
|
|
335
|
dialoguecon = 0;
|
|
336
|
}
|
|
337
|
if (actcon == 1 && !instance_exists(obj_writer))
|
|
338
|
{
|
|
339
|
if (global.mercymod[myself] > 99)
|
|
340
|
{
|
|
341
|
}
|
|
342
|
else if ((global.currentactingchar == 0 && actingsus == 0 && actingral == 0 && rideactgo == 1) || (global.currentactingchar == 1 && actingral == 0 && rideactgo == 1) || (global.currentactingchar == 2 && rideactgo == 1))
|
|
343
|
{
|
|
344
|
if (mrboneswildride == 1)
|
|
345
|
o_coaster_controller.timermax = 250;
|
|
346
|
o_coaster_controller.timer = 0;
|
|
347
|
o_coaster_controller.playerinputtimer = 0;
|
|
348
|
o_coaster_controller.actcon = 1;
|
|
349
|
with (o_coaster_hero)
|
|
350
|
{
|
|
351
|
if (HeroID == 0 && obj_berdlyb_enemy.kriscoaster == 1)
|
|
352
|
{
|
|
353
|
sprite_index = spr_krisb_idle;
|
|
354
|
image_index = 0;
|
|
355
|
image_speed = 0.25;
|
|
356
|
}
|
|
357
|
}
|
|
358
|
with (o_coaster_hero)
|
|
359
|
{
|
|
360
|
if (HeroID == 1 && obj_berdlyb_enemy.suscoaster == 1)
|
|
361
|
{
|
|
362
|
sprite_index = spr_susieb_idle;
|
|
363
|
image_index = 0;
|
|
364
|
image_speed = 0.25;
|
|
365
|
}
|
|
366
|
}
|
|
367
|
with (o_coaster_hero)
|
|
368
|
{
|
|
369
|
if (HeroID == 2 && obj_berdlyb_enemy.ralcoaster == 1)
|
|
370
|
{
|
|
371
|
sprite_index = spr_ralsei_idle;
|
|
372
|
image_index = 0;
|
|
373
|
image_speed = 0.25;
|
|
374
|
}
|
|
375
|
}
|
|
376
|
bumpactstarted = 1;
|
|
377
|
acting = 0;
|
|
378
|
actcon = 0;
|
|
379
|
actconsus = 0;
|
|
380
|
actconral = 0;
|
|
381
|
o_coaster_berdly.forceypos = -1;
|
|
382
|
var kris_text = "Z,";
|
|
383
|
var sus_text = "X,";
|
|
384
|
var ral_text = "C";
|
|
385
|
if (kriscoaster == 1)
|
|
386
|
krisgo = 1;
|
|
387
|
if (suscoaster == 1)
|
|
388
|
susiego = 1;
|
|
389
|
if (ralcoaster == 1)
|
|
390
|
ralseigo = 1;
|
|
391
|
if (kriscoaster == 1 && suscoaster == 1 && ralcoaster == 1)
|
|
392
|
bumpactfast = 1;
|
|
393
|
mrboneswildride = 0;
|
|
394
|
kriscoaster = 0;
|
|
395
|
suscoaster = 0;
|
|
396
|
ralcoaster = 0;
|
|
397
|
}
|
|
398
|
else
|
|
399
|
{
|
|
400
|
scr_nextactscr_nextact
function scr_nextact()
{
global.acting[0] = 0;
global.acting[1] = 0;
global.acting[2] = 0;
global.actingsingle[global.currentactingchar] = 0;
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
with (__minstance)
{
acting = 0;
actcon = 0;
actconsus = 0;
actconral = 0;
actconnoe = 0;
}
var singleactcomplete = 0;
while (global.currentactingchar < 3)
{
global.currentactingchar++;
if (global.currentactingchar < 3)
{
if (global.actingsingle[global.currentactingchar] == 1)
{
__minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]];
if (global.char[global.currentactingchar] == 2)
{
with (__minstance)
actconsus = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 3)
{
with (__minstance)
actconral = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
if (global.char[global.currentactingchar] == 4)
{
with (__minstance)
actconnoe = 1;
if (global.actingsimul[global.currentactingchar] == 0)
singleactcomplete = 1;
break;
}
}
}
}
if (global.currentactingchar >= 3)
{
with (obj_monsterparent)
{
acting = 0;
actingsus = 0;
actingral = 0;
actingnoe = 0;
}
global.currentactingchar = 0;
scr_attackphase();
}
else if (!singleactcomplete)
{
scr_act_simul();
}
} ();
|
|
401
|
}
|
|
402
|
}
|
|
403
|
}
|
|
404
|
if (i_ex(o_coaster_berdly))
|
|
405
|
sactionboxx = o_coaster_berdly.x - o_coaster_berdly.xstart - 60;
|
|
406
|
if (endcon == 1)
|
|
407
|
{
|
|
408
|
endtime++;
|
|
409
|
if (endtime == 1)
|
|
410
|
{
|
|
411
|
with (o_coaster_hero)
|
|
412
|
endscene = 1;
|
|
413
|
with (o_coaster_berdly)
|
|
414
|
endscene = 1;
|
|
415
|
with (obj_battlecontroller)
|
|
416
|
skipvictory = 1;
|
|
417
|
}
|
|
418
|
if (endtime == 30)
|
|
419
|
{
|
|
420
|
snd_free(global.batmusic[0]);
|
|
421
|
o_coaster_berdly.xshake = 10;
|
|
422
|
o_coaster_berdly.sprite_index = spr_cutscene_17_berdly_shocked;
|
|
423
|
if (instance_exists(obj_ch2_scene11a))
|
|
424
|
{
|
|
425
|
obj_ch2_scene11a.coaster_berdly.character_sprite = spr_berdlyb_shocked;
|
|
426
|
obj_ch2_scene11a.coaster_berdly.character_offset_x = -10;
|
|
427
|
obj_ch2_scene11a.coaster_berdly.character_offset_y = -5;
|
|
428
|
}
|
|
429
|
snd_play(snd_bomb);
|
|
430
|
}
|
|
431
|
if (endtime == 90)
|
|
432
|
{
|
|
433
|
scr_act_charsprite_endscr_act_charsprite_end
function scr_act_charsprite_end()
{
for (i = 0; i < 10; i++)
{
with (_charactsprite[i])
instance_destroy();
}
with (obj_heroparent)
{
if (image_alpha == 0)
{
image_alpha = 1;
acttimer = 0;
state = 0;
global.faceaction[myself] = 0;
}
}
} ();
|
|
434
|
msgsetloc(0, W-what...? My coaster, it's...!Wait for inputClose Message"W-what...?&My coaster, it's...!/%", "obj_berdlyb_enemy_slash_Step_0_gml_450_0" );
|
|
435
|
global.typer = 69;
|
|
436
|
scr_enemyblconscr_enemyblcon
function scr_enemyblcon(arg0, arg1, arg2)
{
if (arg2 == 0)
{
mywriter = instance_create(arg0, arg1, obj_writer);
return mywriter;
}
if (arg2 == 1)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
return myblcon;
}
if (arg2 == 2)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_v;
return myblcon;
}
if (arg2 == 3)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
return myblcon;
}
if (arg2 == 4)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 0;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 5)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 1;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 6)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_clubs;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 7)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_r;
myblcon.image_index = 2;
myblcon.image_speed = 0;
return myblcon;
}
if (arg2 == 8)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long_tall;
return myblcon;
}
if (arg2 == 10)
{
myblcon = instance_create(arg0, arg1, obj_battleblcon);
myblcon.sprite_index = spr_battleblcon_long;
myblcon.auto_length = 1;
return myblcon;
}
} (x - 10, global.monstery[myself], 10);
|
|
437
|
}
|
|
438
|
if (endtime >= 90 && !i_ex(obj_writer))
|
|
439
|
{
|
|
440
|
endcon = 0;
|
|
441
|
scr_wincombatscr_wincombat
function scr_wincombat()
{
if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1)
{
global.myfight = 7;
global.mnfight = -1;
with (obj_battlecontroller)
victory = 1;
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
}
else
{
for (i = 0; i < 3; i += 1)
{
if (global.monster[i] == 1 && i_ex(global.monsterinstance[i]))
{
with (global.monsterinstance[i])
scr_monsterdefeat();
}
}
global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0;
for (__j = 0; __j < 3; __j++)
{
if (global.monstertype[__j] != 0(None))
{
_newmonster = scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800;
global.monsterinstance[_newmonster].y = global.monstermakey[__j];
with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
}
}
global.myfight = 5;
myfightreturntimer = 15;
global.mnfight = -1;
}
} ();
|
|
442
|
}
|
|
443
|
}
|
|
444
|
if (scr_debugscr_debug
function scr_debug()
{
return 0;
} ())
|
|
445
|
{
|
|
446
|
if (keyboard_check_pressed(ord("B")))
|
|
447
|
difficulty = 1 - difficulty;
|
|
448
|
}
|
|
449
|
|
|
450
|
enum e__VW
|
|
451
|
{
|
|
452
|
XView,
|
|
453
|
YView,
|
|
454
|
WView,
|
|
455
|
HView,
|
|
456
|
Angle,
|
|
457
|
HBorder,
|
|
458
|
VBorder,
|
|
459
|
HSpeed,
|
|
460
|
VSpeed,
|
|
461
|
Object,
|
|
462
|
Visible,
|
|
463
|
XPort,
|
|
464
|
YPort,
|
|
465
|
WPort,
|
|
466
|
HPort,
|
|
467
|
Camera,
|
|
468
|
SurfaceID
|
|
469
|
}
|