Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_pptile_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    for (var i = 0; i < 32; i++)
5
        slicetext[i] = "----";
6
    if (eventset == 0)
7
    {
8
        wheeloptions = 2;
9
        slicetext[0] = "PLEASURE";
10
        slicetext[1] = "PAIN";
11
    }
12
}
13
if (tilecon == 0)
14
    timer = 0;
15
if (tilecon == 1 && obj_mainchara_board.movingnow == 0)
16
{
17
    timer++;
18
    if (timer == 5)
19
        tilecon = 1.5;
20
}
21
if (tilecon == 1.5)
22
{
23
    wheel = instance_create(0, 0, obj_board_quizwheel);
24
    wheel.maxslices = wheeloptions;
25
    wheel.daddy = id;
26
    wheel.slicetype = 0;
27
    for (var i = 0; i < 32; i++)
28
        wheel.slicetext[i] = slicetext[i];
29
    tilecon = -1;
30
}
31
if (tilecon == 2)
32
{
33
    if (quizchoice == 0)
34
        snd_play(snd_hit);
35
    if (quizchoice == 1)
36
        snd_play(snd_revival);
37
    tilecon = 99;
38
}
39
if (tilecon == 99)
40
{
41
    tilecon = 0;
42
    tiledone = 1;
43
    obj_board_controller.phase = 0;
44
    instance_destroy();
45
}