Deltarune (Chapter 4) 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 (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 = 1248;
23
        d = obj_board_writer.side;
24
    }
25
}
26
if (fighting == 1)
27
    d = 1;
28
d_add = 0;
29
if (d == -1)
30
{
31
    if (obj_mainchara.y <= (__view_get(e__VW.YView, view_current) + (130 * dar)))
32
        d_add = 155;
33
}
34
else if (d != 0)
35
{
36
    d_add = 155;
37
}
38
chx = (140 * dar) + xx;
39
chy = ((36 + d_add) * dar) + yy + (fighting * 30);
40
hx = chx;
41
hy = chy;
42
mychoice = -1;
43
global.choice = -1;
44
choiced = 0;
45
choicetotal = 3;
46
textposx[0] = 0;
47
textposy[0] = 0;
48
textposx[1] = 0;
49
textposy[1] = 0;
50
textposx[2] = 0;
51
textposy[2] = 0;
52
textposx[3] = 0;
53
textposy[3] = 0;
54
heartSprite = 3711;
55
choicerstyle = 0;
56
if (global.chapter == 3 && i_ex(obj_board_writer))
57
{
58
    choicerstyle = 1;
59
    heartSprite = spr_board_heart;
60
}
61
62
enum e__VW
63
{
64
    XView,
65
    YView,
66
    WView,
67
    HView,
68
    Angle,
69
    HBorder,
70
    VBorder,
71
    HSpeed,
72
    VSpeed,
73
    Object,
74
    Visible,
75
    XPort,
76
    YPort,
77
    WPort,
78
    HPort,
79
    Camera,
80
    SurfaceID
81
}