Deltarune (Chapter 2) 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) { 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
if (fighting == 1)
18
    d = 1;
19
d_add = 0;
20
if (d == -1)
21
{
22
    if (obj_mainchara.y <= (__view_get(e__VW.YView, view_current) + (130 * dar)))
23
        d_add = 155;
24
}
25
else if (d != 0)
26
{
27
    d_add = 155;
28
}
29
chx = (140 * dar) + xx;
30
chy = ((36 + d_add) * dar) + yy + (fighting * 30);
31
hx = chx;
32
hy = chy;
33
mychoice = -1;
34
global.choice = -1;
35
choiced = 0;
36
choicetotal = 3;
37
textposx[0] = 0;
38
textposy[0] = 0;
39
textposx[1] = 0;
40
textposy[1] = 0;
41
textposx[2] = 0;
42
textposy[2] = 0;
43
textposx[3] = 0;
44
textposy[3] = 0;
45
46
enum e__VW
47
{
48
    XView,
49
    YView,
50
    WView,
51
    HView,
52
    Angle,
53
    HBorder,
54
    VBorder,
55
    HSpeed,
56
    VSpeed,
57
    Object,
58
    Visible,
59
    XPort,
60
    YPort,
61
    WPort,
62
    HPort,
63
    Camera,
64
    SurfaceID
65
}