Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_sword_shadowtease_teeth_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0 && active)
2
{
3
    var trig = 0;
4
    with (obj_board_trigger)
5
    {
6
        if (extflag == "mouth")
7
        {
8
            if (place_meeting(x, y, obj_mainchara_board))
9
                trig = true;
10
        }
11
    }
12
    if (trig == true)
13
    {
14
        con = 1;
15
        image_alpha = 1;
16
        image_speed = 0;
17
        image_index = 0;
18
    }
19
}
20
if (con == 1)
21
{
22
    var trig = 0;
23
    with (obj_board_trigger)
24
    {
25
        if (extflag == "mouth")
26
        {
27
            if (!place_meeting(x, y, obj_mainchara_board))
28
                trig = true;
29
        }
30
    }
31
    if (trig == true)
32
        con = 2;
33
}
34
if (con == 2)
35
{
36
    global.flag[1010 shadowtease_grin] = 1;
37
    snd_play_x(snd_face_hit, 0.25, 0.8);
38
    
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(x, y, spr___laugh, 0.4, depth, 2, 1);
39
    visible = false;
40
    con = 3;
41
}