Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_GSA02_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
customcon = 0;
3
podium[0] = instance_create(100, 280, obj_quiz_podium);
4
podium[1] = instance_create(184, 280, obj_quiz_podium);
5
podium[2] = instance_create(268, 280, obj_quiz_podium);
6
podium[0].name = "kris";
7
podium[1].name = "susie";
8
podium[2].name = "ralsei";
9
podium[0].image_index = 1;
10
podium[1].image_index = 1;
11
podium[2].image_index = 1;
12
with (obj_quiz_podium)
13
    
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
14
if (global.plot < 80)
15
{
16
    
scr_setparty
scr_setparty

function
scr_setparty(arg0, arg1, arg2)
{ var kris = obj_mainchara; var slot = 0; var __make = true; if (!i_ex(kris)) __make = false;
scr_losechar();
safe_delete(obj_caterpillarchara); if (arg0 == true) {
scr_getchar(2);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 2, slot))
{ halign = (global.darkzone == 0) ? 3 : 6; valign = (global.darkzone == 0) ? 6 : 16; x -= halign; y -= valign; } } slot++; } if (arg1 == true) {
scr_getchar(3);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 3, slot))
{ halign = 2; valign = 12; x -= halign; y -= valign; } } slot++; } if (arg2 == true) {
scr_getchar(4);
if (__make) { with (
scr_makecaterpillar(kris.x, kris.y, 4, slot))
{ halign = (global.darkzone == 0) ? 2 : 4; valign = (global.darkzone == 0) ? 9 : 18; x -= halign; y -= valign; } } slot++; } }
(1, 1, 0);
17
    con = 0;
18
    blackall = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(-10, -10, spr_pixel_white);
19
    blackall.image_xscale = 999;
20
    blackall.image_yscale = 999;
21
    blackall.depth = 100;
22
    blackall.image_blend = c_black;
23
    spotlight = instance_create(0, 0, obj_ch3_GSA02_spotlight);
24
    spotlight.depth = blackall.depth - 10;
25
    spotlight.visible = 0;
26
    name_select = false;
27
    name_select_timer = 0;
28
    screen_wipe_start = false;
29
    audience_cheer = instance_find(obj_ch3_audience, 0);
30
    audience_sfx_start = false;
31
    audience_sfx_stop = false;
32
    audience_sfx_stop_instant = false;
33
    audience_sfx[0] = snd_init("berdly_audience.ogg");
34
    audience_sfx[1] = -4;
35
    gameshow_screen = instance_find(obj_dw_gameshow_screen, 0);
36
    laugh_track = false;
37
    laugh_track_timer = 0;
38
    global.flag[20 other_text_command] = 0;
39
    tv_time = instance_create(0, 0, obj_tenna_tv_time);
40
    technical_difficulties = instance_create(0, 0, obj_dw_technical_difficulties);
41
    with (obj_border_controller)
42
        hide_border();
43
    border_show = false;
44
    border_white_start = false;
45
    border_white_stop = false;
46
}
47
else
48
{
49
    instance_destroy();
50
}
51
setname = 0;
52
aaa = 0;
53
aaatimer = 0;