Deltarune script viewer

← back to main script listing

gml_Object_obj_tutorialbattleevent_ch1_Step_0

(view raw script w/o annotations or w/e)
1
if (con < 400)
2
{
3
    if (con == 1 && __view_get(e__VW.XView, 0) >= (xx - 13) && __view_get(e__VW.XView, 0) <= (xx + 20) && global.interact == 0)
4
    {
5
        __view_set(e__VW.XView, 0, xx - 10);
6
        global.interact = 1;
7
        con = 40;
8
        global.msc = 135;
9
        scr_text_ch1
scr_text_ch1

function scr_text_ch1(arg0) { switch (arg0) { case 0: break; case 10: global.choicemsg[1] =
#Yes
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_7_0")
; global.choicemsg[0] =
#No
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_8_0")
; global.choicemsg[2] = " "; global.choicemsg[3] = " "; global.msg[0] =
* You really didn't want to throw it away.Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_11_0")
; global.msg[1] =
* Throw it away anyway?Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_12_0")
; global.msg[2] =
\C2
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_13_0")
; break; case 11: if (global.choice == 0) { global.msg[0] =
* You felt a feeling of relief.Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_19_0")
; } else { global.msg[0] =
* Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_23_0")
; global.msg[1] =
* It broke into pieces.Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_24_0")
; global.msg[2] =
* You felt bitter.Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_25_0")
; script_execute(scr_litemshift_ch1, global.menucoord[1], 0); for (i = 0; i < 12; i += 1) { global.item[i] = 0; global.weapon[i] = 0; global.armor[i] = 0; } } break; case 100: global.msg[0] =
* Hey, Kris!Delay 11 What's up?Delay 11
* Didja lose your pencil again?Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_38_0")
; global.msg[1] =
\E4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_39_0")
; global.msg[2] =
\E1* Huh?Delay 11
* You want to be partners?Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_40_0")
; global.msg[3] =
\E4* Ummm...Delay 11 Sorry...Delay 11
* Berdly already asked me...Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_41_0")
; global.msg[4] =
\E0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_42_0")
; global.msg[5] =
\E4* I'll ask if you're sure!

Not yet Yes. Ask.\C1
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_43_0")
; global.msg[6] = " "; break; case 101: if (global.choice == 1) { global.msg[0] =
\E0* OK,Delay 11 I'll ask!Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_50_0")
; global.msg[1] =
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_51_0")
; with (obj_classscene_ch1) con = 20; } if (global.choice == 0) global.msg[0] =
\E4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_56_0")
; break; case 102: global.msg[0] =
\E0* Do you wanna be partners?
Not yet Yes\C1
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_61_0")
; global.msg[1] = " "; break; case 103: if (global.choice == 1) { global.msg[0] =
\E0* OK,Delay 11 I'll ask!Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_68_0")
; global.msg[1] =
* Miss Alphys!Delay 11
* Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_69_0")
; with (obj_classscene_ch1) con = 20; } if (global.choice == 0) global.msg[0] =
\E4* Umm,Delay 11 OK.Delay 11
* You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_74_0")
; break; case 104: global.msg[0] =
\E0* Alright.Delay 11
* Let's get this over with.Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_79_0")
; global.msg[1] =
* We'll get more chalk.Delay 11
* Mosey back to class.Delay 11
* And then,Delay 11 Kris...Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_80_0")
; global.msg[2] =
\E2* YOU'LL do our project.Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_81_0")
; global.msg[3] =
* How's that sound?

Good Bad\C1
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_82_0")
; global.msg[4] = " "; break; case 105: global.msg[0] = " %%"; break; case 110: global.choicemsg[0] =
#Yes
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_91_0")
; global.choicemsg[1] =
#No
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_92_0")
; global.choicemsg[2] = " "; global.choicemsg[3] = " "; if (global.flag[100 got_glowshard] == 0) { global.msg[0] =
* (There's something glowing inside.)Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_97_0")
; global.msg[1] =
* (Take it?)Wait for input
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_98_0")
; global.msg[2] =
\C2
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_99_0")
; } else { global.msg[0] =
* (It's dark inside.)Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_103_0")
; } break; case 111: if (global.choice == 0) { global.msg[0] =
* (You got the Glowshard.)Wait for inputClose Message
scr_84_get_lang_string_ch1("scr_text_slash_scr_text_gml_111_0")
; global.flag[100 got_glowshard] = 1; scr_itemget_ch1(3); ...
(global.msc);
10
        global.fe = 3;
11
        global.typer = 31;
12
        global.fc = 2;
13
        instance_create_ch1(0, 0, obj_dialoguer_ch1);
14
    }
15
    if (con == 20 && d_ex_ch1() == 0)
16
    {
17
        global.encounterno = 3;
18
        global.specialbattle = 3;
19
        global.flag[9 battle_music] = 1;
20
        global.batmusic[0] = snd_init_ch1("battle.ogg");
21
        instance_create_ch1(0, 0, obj_encounterbasic_ch1);
22
        con = 21;
23
        alarm[4] = 10;
24
    }
25
    if (con == 22)
26
    {
27
        if (instance_exists(obj_battlecontroller_ch1))
28
        {
29
            with (dummy)
30
                visible = 0;
31
            con = 23;
32
        }
33
    }
34
    if (con == 23)
35
    {
36
        if (instance_exists(obj_endbattle_ch1))
37
        {
38
            con = 23.5;
39
            alarm[4] = 20;
40
        }
41
    }
42
    if (con >= 24 && con <= 28)
43
        global.interact = 1;
44
    if (con == 24.5)
45
    {
46
        con = 24;
47
        alarm[4] = 4;
48
    }
49
    if (con == 25)
50
    {
51
        con = 26;
52
        alarm[4] = 4;
53
    }
54
    if (con == 27)
55
    {
56
        global.fc = 2;
57
        global.fe = 0;
58
        global.typer = 31;
59
        global.msg[0] = 
\E8* Oh,Delay 11 that was fun!Delay 11
* You're a wonderful student,Delay 11 Kris!Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_87_0")
;
60
        global.msg[1] = 
\E1* ... and,Delay 11 er,Delay 11 in case you ever need a refresher, I...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_88_0")
;
61
        global.msg[2] = 
\E8* Here!Delay 11
* I wrote a Manual for you and Susie!Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_89_0")
;
62
        global.msg[3] = 
\E0* Press
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_90_0")
+ scr_get_input_name_ch1
scr_get_input_name_ch1

function scr_get_input_name_ch1(arg0) { var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(6) +
to open the menu and use it in your ITEMS.Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_90_1")
;
63
        scr_noface_ch1
scr_noface_ch1

function scr_noface_ch1(arg0) { global.msg[arg0] =
\TX \F0 \T0 Close Message
scr_84_get_lang_string_ch1("scr_noface_slash_scr_noface_gml_1_0")
; }
(4);
64
        global.msg[5] = 
* (You got the Manual.)Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_92_0")
;
65
        if (global.flag[205 tutorial_end] >= 4)
66
        {
67
            global.msg[0] = 
\E6* Sorry,Delay 11 Kris.Delay 11 I'll try to be a better teacher next time.Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_95_0")
;
68
            global.msg[1] = 
\E1* ... Actually,Delay 11 umm,Delay 11 if you prefer to read,Delay 11 instead...Wait for input
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_tutorialbattleevent_slash_Step_0_gml_96_0")
;
69
        }
70
        instance_create_ch1(0, 0, obj_dialoguer_ch1);
71
        scr_itemget_ch1
scr_itemget_ch1

function scr_itemget_ch1(arg0) { i = 0; loop = 1; noroom = 0; global.item[12] = 999; while (loop == 1) { if (global.item[i] == 0) { global.item[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_iteminfo_all_ch1); }
(4);
72
        con = 28;
73
    }
74
    if (con == 28 && d_ex_ch1() == 0)
75
    {
76
        global.interact = 0;
77
        if (global.plot < 31)
78
            global.plot = 31;
79
        con = 29;
80
        instance_destroy();
81
    }
82
    if (con == 40 && d_ex_ch1() == 0)
83
    {
84
        scr_itemget_ch1
scr_itemget_ch1

function scr_itemget_ch1(arg0) { i = 0; loop = 1; noroom = 0; global.item[12] = 999; while (loop == 1) { if (global.item[i] == 0) { global.item[i] = arg0; break; } if (i == 12) { noroom = 1; break; } i += 1; } script_execute(scr_iteminfo_all_ch1); }
(4);
85
        con = 41;
86
        if (global.plot < 31)
87
            global.plot = 31;
88
        global.interact = 0;
89
        instance_destroy();
90
    }
91
}
92
93
enum e__VW
94
{
95
    XView,
96
    YView,
97
    WView,
98
    HView,
99
    Angle,
100
    HBorder,
101
    VBorder,
102
    HSpeed,
103
    VSpeed,
104
    Object,
105
    Visible,
106
    XPort,
107
    YPort,
108
    WPort,
109
    HPort,
110
    Camera,
111
    SurfaceID
112
}