Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_choicer_neo_Create_0

(view raw script w/o annotations or w/e)
1
alarm[1]
 = 3;
gml_Object_obj_choicer_neo_Alarm_1.gml

canchoose = 1; if (neostyle == 0) { if (global.darkzone == 1 && choicetotal == 2 && choicerstyle == 0) { hy += 39; hx += 31; } }
2
canchoose = 0;
3
dar = global.darkzone + 1;
4
global.flag[33 choice_time_taken] = 0;
5
fighting = 0;
6
if (global.fighting == 1 && instance_exists(obj_battlecontroller))
7
    fighting = 1;
8
image_xscale = dar;
9
image_yscale = dar;
10
remfc = global.fc;
11
global.fc = 0;
12
xx = camerax();
13
yy = cameray();
14
d = -1;
15
if (instance_exists(obj_dialoguer))
16
    d = obj_dialoguer.side;
17
boardwriter = 0;
18
if (global.chapter == 3)
19
{
20
    if (i_ex(obj_board_writer))
21
    {
22
        boardwriter = obj_board_writer;
23
        d = obj_board_writer.side;
24
    }
25
}
26
if (fighting == 1)
27
    d = 1;
28
d_add = 0;
29
is_platmode = i_ex(obj_plat_player);
30
if (is_platmode)
31
    d = 1;
32
if (d == -1)
33
{
34
    if (i_ex(obj_mainchara) && obj_mainchara.y <= (cameray() + (130 * dar)))
35
        d_add = 155;
36
}
37
else if (d != 0)
38
{
39
    d_add = 155;
40
}
41
chx = (140 * dar) + xx;
42
chy = ((36 + d_add) * dar) + yy + (fighting * 30);
43
hx = chx;
44
hy = chy;
45
mychoice = -1;
46
global.choice = -1;
47
choiced = 0;
48
choicetotal = 3;
49
textposx[0] = 0;
50
textposy[0] = 0;
51
textposx[1] = 0;
52
textposy[1] = 0;
53
textposx[2] = 0;
54
textposy[2] = 0;
55
textposx[3] = 0;
56
textposy[3] = 0;
57
heartSprite = 3108;
58
heartCol = 255;
59
highlightCol = 65535;
60
choicerstyle = 0;
61
if (global.chapter == 3)
62
{
63
    if (i_ex(obj_board_writer))
64
    {
65
        choicerstyle = 1;
66
        heartSprite = spr_board_heart;
67
    }
68
}
69
neostyle = 1;
70
neoinit = 0;
71
neolinecount = [];
72
neolerpstrength = 0.8;
73
if (is_platmode || fighting)
74
    neostyle = 0;
75
opt0xoff = 0;
76
opt0yoff = 0;
77
opt1xoff = 0;
78
opt1yoff = 0;
79
opt2xoff = 0;
80
opt2yoff = 0;
81
opt3xoff = 0;
82
opt3yoff = 0;
83
heartxoff = 0;
84
heartyoff = 0;