Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_b3bs_trashcan_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 3)
2
{
3
    if (i_ex(mydialoguer) == false)
4
    {
5
        global.interact = 0;
6
        myinteract = 0;
7
        with (obj_mainchara)
8
            onebuffer = 5;
9
        if (makepoints)
10
        {
11
            var points = itemidchest;
12
            global.flag[1044 points] += points;
13
            global.flag[1117 points_spent] += points;
14
            snd_stop(snd_item);
15
            snd_play_pitch(snd_item, 1.2);
16
            var _display = instance_create(centerx(), centery() - 20, obj_dw_points_get_display);
17
            _display.init(points);
18
            makepoints = false;
19
        }
20
    }
21
}