Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_game_Create_0

(view raw script w/o annotations or w/e)
1
depth = 200;
2
if (i_ex(obj_chefs_init))
3
    depth = obj_chefs_init.depth - 5;
4
timer = 100;
5
timer_max = timer;
6
alarm[0]
 = 1;
gml_Object_obj_chefs_game_Alarm_0.gml

with (obj_chefs_scoretxt) instance_destroy(); if (depletionrate < 0.15) depletionrate += 0.002; if (!gamestart) { gamestart = 1; mus_play_ext("minigame_kart.ogg", true); } if (gameover) exit; timer--; alarm[0]
 = 30;
if (timer <= 0 && !i_ex(obj_gameover_minigame)) { audio_sound_get_track_position(global.currentsong[0]); gameover = true; switch (microgame) { case 0: if (win == 0) { if (scorepoints >= 0) { win = 1; snd_play(snd_lancerwhistle); } else { win = -1; } } break; case 1: win = 1; snd_play(snd_lancerwhistle); break; case 2: case 3: var _count = 0; var _hit = 0; if (instance_exists(obj_chefs_evilguest)) { with (obj_chefs_evilguest) { _count++; if (hit || stomped) _hit++; } } if (_hit == _count || !instance_exists(obj_chefs_evilguest)) { snd_play(snd_lancerwhistle); win = 1; } break; case 4: case 5: var _count = 0; var _hit = 0; if (instance_exists(obj_chefs_customer)) { with (obj_chefs_customer) { _count++; if (leaving) _hit++; } } if (_hit == _count || !instance_exists(obj_chefs_customer)) { snd_play(snd_lancerwhistle); win = 1; } else { win = -1; } break; } }
7
gamestart = true;
8
countdown = -1;
9
gameover = false;
10
gameover_done = false;
11
hbx_visible = false;
12
bananacoins = false;
13
microgame = 0;
14
win = 0;
15
scorepoints = 0;
16
scorepoints_goal = 400;
17
min_pts = 0;
18
popularity = 0;
19
depletionrate = 0.05;
20
rank = "F";
21
rank_set = false;
22
t_rank = false;
23
scr_flag_set
scr_flag_set

function
scr_flag_set(arg0, arg1)
{ global.flag[arg0] = arg1; }
(7, 1);
24
star_anim = 0;
25
star_anim_speed = 0.5;
26
bg_speed = 1;
27
bg_speed_y = 1;
28
bg_speed_max = 3;
29
bg_speed_y_max = 3;
30
flashtimer = 0;
31
_surface1 = -1;
32
_surface2 = -1;
33
introtimer = 0;
34
endtimer = 0;
35
replayversion = false;
36
if (global.plot >= 120 && room != room_dw_chef_empty)
37
    replayversion = true;
38
rainbow_i = 0;
39
_c[0] = 255;
40
_c[1] = make_color_rgb(250, 177, 58);
41
_c[2] = 65535;
42
_c[3] = make_color_rgb(77, 204, 142);
43
_c[4] = make_color_rgb(117, 251, 237);
44
_c[5] = 16711680;
45
_c[6] = make_color_rgb(136, 23, 106);
46
_l[0] = 0;
47
_l[1] = 1;
48
_l[2] = 2;
49
_l[3] = 3;
50
_l[4] = 4;
51
_l[5] = 5;
52
_l[6] = 6;
53
_l[7] = 0;
54
_l[8] = 1;
55
_l[9] = 2;
56
_l[10] = 3;
57
_l[11] = 4;
58
_l[12] = 5;
59
_l[13] = 6;
60
_l[14] = 0;
61
lasereasteregg_con = 0;
62
lasereasteregg_timer = 0;
63
siner = 0;
64
dstep = 0;
65
maxstack = 0;
66
foodwasted = 0;
67
customersfed = 0;
68
instance_create(x, y, obj_chef_controls_ui);