Undertale script viewer

← back to main script listing

gml_Object_obj_flowey_bulletmaster_Create_0

(view raw script w/o annotations or w/e)
1
timer = 0;
2
maxtimer = 754;
3
if (global.battlephase == 1 || global.battlephase == 5)
4
    maxtimer = 678;
5
soultimer = 0;
6
soulmax = 460;
7
active = 0;
8
attacktimer = 0;
9
attacktimermax = 9999;
10
attackno = 0;
11
save_attackno = 0;
12
attackid[0] = 7;
13
attackid[1] = 7;
14
attackid[2] = 7;
15
alarm[0] = 1;
16
phase_1 = 0;
17
phase_s = 0;
18
ourattack = 1287248374;
19
overtype = 0;
20
unhinged = 0;
21
atimer = -1;
22
if (global.battlephase == 0)
23
{
24
    with (obj_flowey_master)
25
    {
26
        fileset = 3;
27
        savetimer = 20;
28
    }
29
}
30
if (global.battlephase == 0 || global.battlephase == 3)
31
{
32
    with (obj_flowey_master)
33
        caster_play(mus_phase[0], 1, 1);
34
    atimer = 200 + floor(random(200));
35
}
36
if (global.battlephase == 1 || global.battlephase == 5)
37
{
38
    with (obj_flowey_master)
39
        caster_play(mus_phase[1], 1, 1);
40
    atimer = 200 + floor(random(180));
41
}
42
if (global.battlephase == 2 || global.battlephase == 4)
43
{
44
    maxtimer = 500;
45
    overtype = 1;
46
    with (obj_flowey_master)
47
    {
48
        mustype = 3;
49
        caster_loop(mus_repeat1, 1, 1);
50
    }
51
}
52
if (global.battlephase == 6)
53
{
54
    alarm[8] = 150;
gml_Object_obj_flowey_bulletmaster_Alarm_8.gml

hl = instance_create(260 + random(100), 180, obj_6heal); alarm[8] = 170 + random(20); if (unhinged == 1) alarm[8] = 145 + random(10);
55
    with (obj_floweybodyparent)
56
    {
57
        wimpy = 1;
58
        desperate = 0;
59
    }
60
    maxtimer = 9999999;
61
    atimer = 160;
62
    with (obj_flowey_master)
63
    {
64
        mustype = 4;
65
        caster_play(mus_finale2, 1, 1);
66
    }
67
    alarm[6] = 1214;
gml_Object_obj_flowey_bulletmaster_Alarm_6.gml

if (global.battlephase == 6) { unhinged = 1; maxtimer = 9999999; with (obj_flowey_master) { megadamage = 1; mustype = 5; caster_loop(mus_finale3, 1, 1); } alarm[7] = 900; with (obj_floweybodyparent) { desperate = 1; wimpy = 0; } }
68
}