Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_quiztile_Step_0

(view raw script w/o annotations or w/e)
1
if (tilecon == 0)
2
    timer = 0;
3
if (tilecon == 1 && obj_mainchara_board.movingnow == 0)
4
{
5
    timer++;
6
    if (timer == 5)
7
        tilecon = 1.5;
8
}
9
if (tilecon == 1.5)
10
{
11
    wheel = instance_create(0, 0, obj_board_quizwheel);
12
    wheel.maxslices = wheeloptions;
13
    wheel.daddy = id;
14
    wheel.slicetype = 0;
15
    wheel.slicetext[0] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno1);
16
    wheel.slicetext[1] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno2);
17
    wheel.slicetext[2] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno3);
18
    wheel.slicetext[3] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno4);
19
    wheel.slicetext[4] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno5);
20
    wheel.slicetext[5] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno6);
21
    wheel.slicetext[6] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno7);
22
    wheel.slicetext[7] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno8);
23
    wheel.slicetext[8] = 
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quizno9);
24
    tilecon = -1;
25
}
26
if (tilecon == 2)
27
{
28
    quiz = instance_create(0, 0, obj_quizsequence);
29
    quiz.depth = obj_mainchara_board.depth - 10;
30
    var quiznumber = 0;
31
    switch (quizchoice)
32
    {
33
        case 0:
34
            quiznumber = quizno1;
35
            break;
36
        case 1:
37
            quiznumber = quizno2;
38
            break;
39
        case 2:
40
            quiznumber = quizno3;
41
            break;
42
        case 3:
43
            quiznumber = quizno4;
44
            break;
45
        case 4:
46
            quiznumber = quizno5;
47
            break;
48
        case 5:
49
            quiznumber = quizno6;
50
            break;
51
        case 6:
52
            quiznumber = quizno7;
53
            break;
54
        case 7:
55
            quiznumber = quizno8;
56
            break;
57
        case 8:
58
            quiznumber = quizno9;
59
            break;
60
    }
61
    quiz.quizno = quiznumber;
62
    
scr_quiztopic
scr_quiztopic

function
scr_quiztopic(arg0)
{ var __tempMarker = instance_create(x, y, obj_marker); with (__tempMarker)
scr_quiztext(arg0);
var myTopic = __tempMarker.topic; with (__tempMarker) instance_destroy(); return myTopic; }
(quiznumber);
63
    obj_board_controller.phase = 2;
64
    timer = 0;
65
    tilecon = 3;
66
}
67
if (tilecon == 3 && !i_ex(obj_quizsequence))
68
    tilecon = 99;
69
if (tilecon == 99)
70
{
71
    tilecon = 0;
72
    tiledone = 1;
73
    obj_board_controller.phase = 0;
74
    instance_destroy();
75
}