Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_lancerbakesale_event_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 10 && !d_ex())
2
{
3
    with (s)
4
    {
5
        sprite_index = spr_susier_dark;
6
        image_speed = 0.334;
7
        hspeed = 12;
8
    }
9
    with (l)
10
    {
11
        sprite_index = spr_lancer_rt;
12
        hspeed = 12;
13
    }
14
    con = 11;
15
    alarm[4]
 = 20;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
16
}
17
if (con == 11)
18
    global.interact = 1;
19
if (con == 12)
20
{
21
    with (s)
22
    {
23
        x = __view_get(e__VW.XView, 0) - 140;
24
        hspeed = 12;
25
        vspeed = 0;
26
        y += 90;
27
        sprite_index = spr_susier_dark;
28
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
29
    }
30
    with (l)
31
    {
32
        x = __view_get(e__VW.XView, 0) - 100;
33
        hspeed = 12;
34
        y += 90;
35
        sprite_index = spr_lancer_rt;
36
        
scr_depth
scr_depth

function
scr_depth()
{ depth = 100000 - ((y * 10) + (sprite_height * 10)); }
();
37
    }
38
    con = 15;
39
    alarm[4]
 = 29;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
40
}
41
if (con == 16)
42
{
43
    with (s)
44
    {
45
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
46
        sprite_index = spr_susieu_dark;
47
    }
48
    with (l)
49
    {
50
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
51
        sprite_index = spr_lancer_ut;
52
    }
53
    global.facing = 3;
54
    with (global.cinstance[0])
55
    {
56
        fun = 1;
57
        sprite_index = lsprite;
58
    }
59
    con = 26;
60
    alarm[4]
 = 5;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
61
}
62
if (con == 18)
63
{
64
    with (s)
65
        sprite_index = spr_susier_dark;
66
    with (l)
67
        sprite_index = spr_lancer_lt;
68
    global.typer = 30;
69
    global.fc = 1;
70
    global.fe = 1;
71
    global.msg[0] = 
* Alright,Delay 11 which one do you want?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_80_0")
;
72
    
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(1, 2);
73
    global.msg[2] = 
* Hahahah!!Delay 11 Hmmm...Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_82_0")
;
74
    con = 19;
75
    instance_create(0, 0, obj_dialoguer);
76
}
77
if (con == 19 && !d_ex())
78
{
79
    with (l)
80
        sprite_index = spr_lancer_ut;
81
    with (s)
82
        sprite_index = spr_susieu_dark;
83
    con = 20;
84
    alarm[4]
 = 30;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
85
}
86
if (con == 21)
87
{
88
    with (l)
89
        sprite_index = spr_lancer_lt;
90
    with (s)
91
        sprite_index = spr_susier_dark;
92
    global.typer = 32;
93
    global.fe = 6;
94
    global.fc = 5;
95
    global.msg[0] = 
* Wait,Delay 11 you're buying it for me?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_103_0")
;
96
    
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(1, 0);
97
    global.msg[2] = 
* You said you didn't eat anything earlier,Delay 11 right...?Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_105_0")
;
98
    global.msg[3] = 
Face 2* It'd be annoying if you starved to death,Delay 11 y'know.Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_106_0")
;
99
    
scr_lanface
scr_lanface

function
scr_lanface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char L Sound L Close Message
scr_84_get_lang_string("scr_lanface_slash_scr_lanface_gml_1_0")
, string(arg1));
}
(4, 3);
100
    global.msg[5] = 
* Wow...!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_108_0")
;
101
    global.msg[6] = 
* You're the best teammate ever,Delay 11 Purple Girl...!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_109_0")
;
102
    con = 25;
103
    instance_create(0, 0, obj_dialoguer);
104
}
105
if (con == 25 && !d_ex())
106
{
107
    with (s)
108
    {
109
        hspeed = 13;
110
        image_speed = 0.25;
111
        sprite_index = spr_susier_dark;
112
    }
113
    with (l)
114
    {
115
        hspeed = 13;
116
        sprite_index = spr_lancer_rt;
117
    }
118
    con = 26;
119
    alarm[4]
 = 6;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
120
}
121
if (con == 27)
122
{
123
    with (s)
124
    {
125
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
126
        sprite_index = spr_susieu_dark;
127
        vspeed = -10;
128
    }
129
    with (l)
130
    {
131
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
132
        sprite_index = spr_lancer_ut;
133
        vspeed = -10;
134
    }
135
    con = 28;
136
    alarm[4]
 = 6;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
137
}
138
if (con == 29)
139
{
140
    with (s)
141
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
142
    with (l)
143
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
144
    con = 30;
145
    alarm[4]
 = 10;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
146
}
147
if (con == 31)
148
{
149
    with (s)
150
    {
151
        sprite_index = spr_susied_dark;
152
        image_speed = 0.25;
153
        vspeed = 12;
154
    }
155
    with (l)
156
    {
157
        sprite_index = spr_lancer_dt;
158
        vspeed = 12;
159
    }
160
    con = 33;
161
    alarm[4]
 = 7;
gml_Object_obj_lancerbakesale_event_Alarm_4.gml

con += 1;
162
}
163
if (con == 34)
164
{
165
    with (s)
166
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
167
    with (l)
168
        
scr_halt
scr_halt

function
scr_halt()
{ image_index = 0; image_speed = 0; speed = 0; }
();
169
    con = 35;
170
}
171
if (con == 35 && !d_ex())
172
{
173
    lnpc = instance_create(l.x, l.y + 108, obj_npc_facing);
174
    with (lnpc)
175
    {
176
        dfacing = 0;
177
        sprite_index = spr_lancer_dt;
178
        dtsprite = sprite_index;
179
        rtsprite = sprite_index;
180
        ltsprite = sprite_index;
181
        utsprite = sprite_index;
182
    }
183
    snpc = instance_create(s.x, s.y + 108, obj_npc_facing);
184
    with (snpc)
185
    {
186
        dfacing = 1;
187
        sprite_index = spr_susier_dark;
188
        dtsprite = sprite_index;
189
        rtsprite = sprite_index;
190
        ltsprite = sprite_index;
191
        utsprite = sprite_index;
192
    }
193
    con = 36;
194
    if (global.plot < 80)
195
        global.plot = 80;
196
    global.flag[238 susie_bought_snack] = 1;
197
    global.interact = 0;
198
    global.facing = 0;
199
    with (global.cinstance[0])
200
        fun = 0;
201
    with (s)
202
        instance_destroy();
203
    with (l)
204
        instance_destroy();
205
}
206
if (con == 4000)
207
{
208
    if (obj_mainchara.x >= (room_width - 80) && global.interact == 0)
209
    {
210
        obj_mainchara.x -= 10;
211
        global.facing = 3;
212
        global.typer = 32;
213
        global.fc = 5;
214
        global.fe = 7;
215
        global.msg[0] = 
* Hey!Delay 11 You can't not buy from us!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_237_0")
;
216
        
scr_susface
scr_susface

function
scr_susface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char S Sound S Close Message
scr_84_get_lang_string("scr_susface_slash_scr_susface_gml_1_0")
, string(arg1));
}
(1, 2);
217
        global.msg[2] = 
* Hey DUMBASS!Delay 11
* It's for a GOOD CAUSE!Wait for input
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_239_0")
;
218
        
scr_ralface
scr_ralface

function
scr_ralface(arg0, arg1)
{ global.msg[arg0] =
scr_84_get_subst_string(
Sound X Char 0 Face ~1 Char R Sound R Close Message
scr_84_get_lang_string("scr_ralface_slash_scr_ralface_gml_1_0")
, string(arg1));
}
(3, 6);
219
        global.msg[4] = 
* (Kris let's just buy one.)Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_lancerbakesale_event_slash_Step_0_gml_241_0")
;
220
        global.interact = 1;
221
        con = 2;
222
        instance_create(0, 0, obj_dialoguer);
223
    }
224
}
225
if (con == 4002 && !d_ex())
226
{
227
    con = 4000;
228
    global.interact = 0;
229
}
230
231
enum e__VW
232
{
233
    XView,
234
    YView,
235
    WView,
236
    HView,
237
    Angle,
238
    HBorder,
239
    VBorder,
240
    HSpeed,
241
    VSpeed,
242
    Object,
243
    Visible,
244
    XPort,
245
    YPort,
246
    WPort,
247
    HPort,
248
    Camera,
249
    SurfaceID
250
}