Deltarune script viewer

← back to main script listing

gml_Object_obj_controller_dw_mansion_single_pot_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_mainchara.x > 120 && con == 0)
2
    con = 1;
3
if (con == 1 && !d_ex())
4
{
5
    queen_monitor.turnon = 1;
6
    global.interact = 1;
7
    global.flag[400 vase_intro_status] = 1;
8
    con++;
9
}
10
if (con == 2 && !d_ex())
11
{
12
    scr_speaker
scr_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 == "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; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("queen");
13
    msgsetloc(0, 
* Now I Know You Are All Loving My MansionWait for input
"* Now I Know You Are All Loving My Mansion/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_16_0_b"
);
14
    msgnextloc(
* But We Have A Few Rules Around Here You Have To FollowWait for input
"* But We Have A Few Rules Around Here You Have To Follow/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_17_0"
);
15
    msgnextloc(
* One Wipe Your ShoesWait for input
"* One Wipe Your Shoes/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_18_0"
);
16
    msgnextloc(
* Two Have FunWait for input
"* Two Have Fun/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_19_0"
);
17
    msgnextloc(
* Three Respect The PotteryWait for input
"* Three Respect The Pottery/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_20_0"
);
18
    msgnextloc(
* Four Have FunWait for input
"* Four Have Fun/", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_21_0"
);
19
    msgnextloc(
* Five List Entry Duplication ErrorWait for inputClose Message
"* Five List Entry Duplication Error/%", "obj_controller_dw_mansion_single_pot_slash_Step_0_gml_22_0"
);
20
    d = d_make();
21
    d.side = 1;
22
    con++;
23
    timer = 0;
24
}
25
if (con == 3 && !d_ex() && queen_monitor.turnoff == 0)
26
{
27
    queen_monitor.turnoff = 1;
28
    global.interact = 0;
29
}
30
if (con == 3 && !instance_exists(obj_queenvase))
31
{
32
    global.flag[400 vase_intro_status] = 2;
33
    snd_play(snd_b);
34
    enemy1 = instance_create(-146, 200, obj_chaseenemy);
35
    with (enemy1)
36
    {
37
        myencounter = 64;
38
        sprite_index = spr_npc_swatchling_sweep_walk;
39
        touchsprite = spr_swatchling_hurt;
40
        radius = 10000;
41
        ignoresolid = 1;
42
        alertcon = 0;
43
        alertskip = 1;
44
        eraser = 1;
45
        facing = 1;
46
        chasetype = 7;
47
    }
48
    enemy2 = instance_create(640, 200, obj_chaseenemy);
49
    with (enemy2)
50
    {
51
        myencounter = 64;
52
        sprite_index = spr_npc_swatchling_sweep_walk;
53
        touchsprite = spr_swatchling_hurt;
54
        radius = 10000;
55
        ignoresolid = 1;
56
        alertcon = 0;
57
        eraser = 1;
58
        alertskip = 1;
59
        chasetype = 7;
60
    }
61
    con = 4;
62
}
63
if (con == 4)
64
{
65
    if (!i_ex(enemy1) || !i_ex(enemy2))
66
        con = 5;
67
}
68
if (con == 5)
69
{
70
}