Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC14A_choicer_Create_0

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