Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_ch2_room_castle_susie_Step_0

(view raw script w/o annotations or w/e)
1
if (obj_mainchara.y < y && con == -1)
2
{
3
    global.interact = 1;
4
    global.facing = 2;
5
    con = 1;
6
}
7
if (con == 1)
8
{
9
    con = 2;
10
    alarm[0] = 30;
11
    cutscene_master = scr_cutscene_make
scr_cutscene_make

function scr_cutscene_make() { _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
12
    with (obj_mainchara)
13
        visible = 0;
14
    with (obj_caterpillarchara)
15
        visible = 0;
16
    kr = 0;
17
    kr_actor = instance_create(300, 500, obj_actor);
18
    scr_actor_setup
scr_actor_setup

function scr_actor_setup(arg0, arg1, arg2) { _actorid = arg0; _actorinstance = arg1; _actorname = arg2; obj_cutscene_master.actor_id[_actorid] = _actorinstance; obj_cutscene_master.actor_name[_actorid] = _actorname; with (_actorinstance) { number = arg0; scr_set_facing_sprites(arg2); } }
(kr, kr_actor, "kris");
19
    kr_actor.sprite_index = spr_krisu_dark;
20
    su = 1;
21
    su_actor = instance_create(kr_actor.x - 8, kr_actor.y + 50, obj_actor);
22
    scr_actor_setup
scr_actor_setup

function scr_actor_setup(arg0, arg1, arg2) { _actorid = arg0; _actorinstance = arg1; _actorname = arg2; obj_cutscene_master.actor_id[_actorid] = _actorinstance; obj_cutscene_master.actor_name[_actorid] = _actorname; with (_actorinstance) { number = arg0; scr_set_facing_sprites(arg2); } }
(su, su_actor, "susie");
23
    su_actor.sprite_index = spr_susie_walk_up_dw;
24
    ra = 2;
25
    ra_actor = instance_create(kr_actor.x - 4, su_actor.y + 50, obj_actor);
26
    scr_actor_setup
scr_actor_setup

function scr_actor_setup(arg0, arg1, arg2) { _actorid = arg0; _actorinstance = arg1; _actorname = arg2; obj_cutscene_master.actor_id[_actorid] = _actorinstance; obj_cutscene_master.actor_name[_actorid] = _actorname; with (_actorinstance) { number = arg0; scr_set_facing_sprites(arg2); } }
(ra, ra_actor, "ralsei");
27
    ra_actor.sprite_index = spr_ralsei_walk_up;
28
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(kr);
29
    c_walk
c_walk

function c_walk(arg0, arg1, arg2) { c_cmd("walk", arg0, arg1, arg2, 0); }
("u", 5, 36);
30
    c_delaywalk
c_delaywalk

function c_delaywalk(arg0, arg1, arg2, arg3) { c_cmd_x("delaycmd", arg0, "walk", arg1, arg2, arg3, 0); }
(37, "r", 5, 12);
31
    c_delayfacing
c_delayfacing

function c_delayfacing(arg0, arg1) { c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0); }
(50, "u");
32
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(su);
33
    c_walk
c_walk

function c_walk(arg0, arg1, arg2) { c_cmd("walk", arg0, arg1, arg2, 0); }
("u", 5, 60);
34
    c_delaywalk
c_delaywalk

function c_delaywalk(arg0, arg1, arg2, arg3) { c_cmd_x("delaycmd", arg0, "walk", arg1, arg2, arg3, 0); }
(51, "l", 5, 12);
35
    c_delayfacing
c_delayfacing

function c_delayfacing(arg0, arg1) { c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0); }
(63, "u");
36
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(ra);
37
    c_walk
c_walk

function c_walk(arg0, arg1, arg2) { c_cmd("walk", arg0, arg1, arg2, 0); }
("u", 5, 80);
38
    c_delayfacing
c_delayfacing

function c_delayfacing(arg0, arg1) { c_cmd_x("delaycmd", arg0, "facing", arg1, 0, 0, 0); }
(81, "d");
39
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(82);
40
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("ralsei");
41
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face 2* And Susie,Delay 11 this is your room!Wait for input
"\\E2* And Susie^1, this is your room!/", "obj_ch2_room_castle_susie_slash_Step_0_gml_49_0"
);
42
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face 1* Umm,Delay 11 I tried to make it something you'd like,Delay 11 but...Wait for input
"\\E1* Umm^1, I tried to make it something you'd like^1, but.../", "obj_ch2_room_castle_susie_slash_Step_0_gml_50_0"
);
43
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face 2* You can put anything else you want in here,Delay 11 too!Wait for input
"\\E2* You can put anything else you want in here^1, too!/", "obj_ch2_room_castle_susie_slash_Step_0_gml_51_0"
);
44
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face H* I really hope you like it!Wait for inputClose Message
"\\EH* I really hope you like it!/%", "obj_ch2_room_castle_susie_slash_Step_0_gml_52_0"
);
45
    c_talk_wait();
46
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(15);
47
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(su);
48
    c_walk_wait
c_walk_wait

function c_walk_wait(arg0, arg1, arg2) { c_walk(arg0, arg1, arg2); c_wait(arg2); }
("u", 5, 24);
49
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("susieunhappy");
50
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("l");
51
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(20);
52
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("u");
53
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(20);
54
    c_walk_wait
c_walk_wait

function c_walk_wait(arg0, arg1, arg2) { c_walk(arg0, arg1, arg2); c_wait(arg2); }
("r", 5, 32);
55
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("u");
56
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(ra);
57
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("r");
58
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(30);
59
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("susie");
60
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face 0* ...Wait for input
"\\E0* .../", "obj_ch2_room_castle_susie_slash_Step_0_gml_74_0"
);
61
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face D* ...Delay 11 My own room,Delay 11 huh.Wait for inputClose Message
"\\ED* ..^1. My own room^1, huh./%", "obj_ch2_room_castle_susie_slash_Step_0_gml_75_0"
);
62
    c_talk_wait();
63
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(su);
64
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("r");
65
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(30);
66
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("susie");
67
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face A* I...Delay 11 guess that's pretty cool?Wait for input
"\\EA* I..^1. guess that's pretty cool?/", "obj_ch2_room_castle_susie_slash_Step_0_gml_82_0"
);
68
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face A* My own room...Delay 11 like this.Wait for inputClose Message
"\\EA* My own room..^1. like this./%", "obj_ch2_room_castle_susie_slash_Step_0_gml_83_0"
);
69
    c_talk_wait();
70
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("u");
71
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(30);
72
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("l");
73
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("susie");
74
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face K* ...Delay 11 how long did it,Delay 11 uh,Delay 11 take you to do this?Wait for inputClose Message
"\\EK* ..^1. how long did it^1, uh^1, take you to do this?/%", "obj_ch2_room_castle_susie_slash_Step_0_gml_89_0"
);
75
    c_talk_wait();
76
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(ra);
77
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("d");
78
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("ralsei");
79
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face 1* Well,Delay 11 er,Delay 11 since I last saw you two,Delay 11 I...Wait for inputClose Message
"\\E1* Well^1, er^1, since I last saw you two^1, I.../%", "obj_ch2_room_castle_susie_slash_Step_0_gml_95_0"
);
80
    c_talk_wait();
81
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(su);
82
    c_walkdirect_wait
c_walkdirect_wait

function c_walkdirect_wait(arg0, arg1, arg2) { c_walkdirect(arg0, arg1, arg2); c_wait(arg2); }
(325, 198, 10);
83
    c_autowalk
c_autowalk

function c_autowalk(arg0) { c_cmd("autowalk", arg0, 0, 0, 0); }
(0);
84
    c_sprite
c_sprite

function c_sprite(arg0) { c_cmd("sprite", arg0, 0, 0, 0); }
(spr_susie_playful_punch_dw);
85
    c_imageindex
c_imageindex

function c_imageindex(arg0) { c_cmd("imageindex", arg0, 0, 0, 0); }
(0);
86
    c_imagespeed
c_imagespeed

function c_imagespeed(arg0) { c_cmd("imagespeed", arg0, 0, 0, 0); }
(0);
87
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(10);
88
    c_imageindex
c_imageindex

function c_imageindex(arg0) { c_cmd("imageindex", arg0, 0, 0, 0); }
(1);
89
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(ra);
90
    c_shakeobj
c_shakeobj

function c_shakeobj() { c_cmd("shakeobj", 0, 0, 0, 0); }
();
91
    c_soundplay
c_soundplay

function c_soundplay(arg0) { c_cmd("soundplay", arg0, 0, 0, 0); }
(snd_impact);
92
    c_wait
c_wait

function c_wait(arg0) { c_cmd("wait", arg0, 0, 0, 0); }
(15);
93
    c_sel
c_sel

function c_sel(arg0) { c_cmd("select", arg0, 0, 0, 0); }
(su);
94
    c_sprite
c_sprite

function c_sprite(arg0) { c_cmd("sprite", arg0, 0, 0, 0); }
(spr_susie_walk_right_dw);
95
    c_imageindex
c_imageindex

function c_imageindex(arg0) { c_cmd("imageindex", arg0, 0, 0, 0); }
(0);
96
    c_autowalk
c_autowalk

function c_autowalk(arg0) { c_cmd("autowalk", arg0, 0, 0, 0); }
(1);
97
    c_walk_wait
c_walk_wait

function c_walk_wait(arg0, arg1, arg2) { c_walk(arg0, arg1, arg2); c_wait(arg2); }
("r", 3, 8);
98
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("u");
99
    c_facing
c_facing

function c_facing(arg0) { c_cmd("facing", arg0, 0, 0, 0); }
("susie");
100
    c_speaker
c_speaker

function c_speaker(arg0) { c_cmd("speaker", arg0, 0, 0, 0); }
("susie");
101
    c_msgsetloc
c_msgsetloc

function c_msgsetloc(arg0, arg1, arg2) { var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgset(msg_index, str); }
(0,
Face 2* Man,Delay 11 you're a real weenie,Delay 11 y'know that?Wait for input
"\\E2* Man^1, you're a real weenie^1, y'know that?/", "obj_ch2_room_castle_susie_slash_Step_0_gml_125_0"
);
102
    c_msgnextloc
c_msgnextloc

function c_msgnextloc(arg0, arg1) { var str = arg0; var localized_string_id = arg1; if (!is_english()) str = scr_84_get_lang_string(localized_string_id); c_msgnext(str); }
(
Face 9* Heheheh...Wait for inputClose Message
"\\E9* Heheheh.../%", "obj_ch2_room_castle_susie_slash_Step_0_gml_126_0"
);
103
    c_talk_wait();
104
    c_actortokris
c_actortokris

function c_actortokris() { c_cmd("actortokris", 0, 0, 0, 0); }
();
105
    c_actortocaterpillar
c_actortocaterpillar

function c_actortocaterpillar() { c_cmd("actortocaterpillar", 0, 0, 0, 0); }
();
106
    c_terminatekillactors
c_terminatekillactors

function c_terminatekillactors() { c_cmd("terminatekillactors", 0, 0, 0, 0); }
();
107
}
108
if (con == 3 && !i_ex(obj_cutscene_master))
109
{
110
    con = 4;
111
    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) ...
("ralsei");
112
    msgsetloc(0, 
Face 2* (I think she likes it,Delay 11 Kris!)Wait for input
"\\E2* (I think she likes it^1, Kris!)/", "obj_ch2_room_castle_susie_slash_Step_0_gml_139_0"
);
113
    scr_anyface_next
scr_anyface_next

function scr_anyface_next(arg0, arg1) { global.msgno++; scr_anyface(arg0, global.msgno, arg1); }
("susie", "2");
114
    msgnextloc(
Face 2* (Haha,Delay 11 jealous I got the COOL room? LOOK,Delay 11 Kris!)Wait for inputClose Message
"\\E2* (Haha^1, jealous I got the COOL room? LOOK^1, Kris!)/%", "obj_ch2_room_castle_susie_slash_Step_0_gml_141_0"
);
115
    d_make();
116
}
117
if (con == 4 && !d_ex())
118
{
119
    global.plot = 15;
120
    global.facing = 0;
121
    global.interact = 0;
122
    con = -1;
123
    instance_destroy();
124
}