Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_cutscene_master_Create_0

(view raw script w/o annotations or w/e)
1
waiting = 0;
2
cs_wait_timer = 0;
3
cs_wait_amount = 0;
4
cs_wait_dialogue = 0;
5
cs_wait_custom = 0;
6
cs_wait_box = -1;
7
mydialoguer = 438438943;
8
kill_actors = 0;
9
loadedState = 0;
10
instant = 0;
11
breakme = 0;
12
current_command = 0;
13
maximum_command = 1;
14
master_object = 9999999;
15
msgside = -1;
16
zurasu = 0;
17
mysound = -1;
18
initialized = 0;
19
var inittype = 0;
20
with (obj_controller_dininghall)
21
    inittype = 1;
22
with (obj_ch2_scene19a)
23
    inittype = 1;
24
with (obj_ch2_scene19b)
25
    inittype = 1;
26
with (obj_ch2_scene19c)
27
    inittype = 1;
28
actor_selected = "noone";
29
actor_selected_id = 99999999;
30
if (inittype == 0)
31
{
32
    for (i = 0; i < 20; i++)
33
    {
34
        actor_id[i] = 99999999;
35
        actor_name[i] = "noone";
36
    }
37
    for (i = 0; i < 10; i++)
38
        save_object[i] = 99999999;
39
    
scr_cutscene_master_commands_initialize
scr_cutscene_master_commands_initialize

function
scr_cutscene_master_commands_initialize()
{ for (var i = 0; i < 800; i++) { command[i] = "terminate"; command_actor[i] = 99999999; command_arg1[i] = 0; command_arg2[i] = 0; command_arg3[i] = 0; command_arg4[i] = 0; command_arg5[i] = 0; command_arg6[i] = 0; } current_command = 0; maximum_command = 1; }
();
40
}
41
if (inittype == 1)
42
{
43
    actor_id = array_create(20, 99999999);
44
    actor_name = array_create(20, "noone");
45
    save_object = array_create(10, 99999999);
46
    command = array_create(800, "terminate");
47
    command_actor = array_create(800, 99999999);
48
    command_arg1 = array_create(800);
49
    command_arg2 = array_create(800);
50
    command_arg3 = array_create(800);
51
    command_arg4 = array_create(800);
52
    command_arg5 = array_create(800);
53
    command_arg6 = array_create(800);
54
    current_command = 0;
55
    maximum_command = 1;
56
}
57
terminate_this_frame = 0;