Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_pink_enemy_Other_10

related scripts: Alarm_4Alarm_6CleanUp_0Create_0Draw_0Other_10 Other_11Other_12Other_22Step_0

(view raw script w/o annotations or w/e)
1
if (datecount == 0)
2
{
3
    if (phaseturns >= 5)
4
        looping = true;
5
    if (phaseturns == 0)
6
    {
7
        myattackchoice = 1;
8
        difficulty = 0;
9
    }
10
    if (phaseturns == 1)
11
    {
12
        myattackchoice = 6;
13
        difficulty = 1;
14
    }
15
    if (phaseturns == 2)
16
    {
17
        myattackchoice = 1;
18
        difficulty = 1;
19
    }
20
    if (phaseturns == 3)
21
    {
22
        myattackchoice = 6;
23
        difficulty = 0;
24
    }
25
    if (phaseturns == 4)
26
    {
27
        myattackchoice = 5;
28
        difficulty = 0;
29
    }
30
    if (phaseturns > 4)
31
    {
32
        var _rand = choose(0, 1);
33
        if (_rand == 0)
34
        {
35
            myattackchoice = 1;
36
            difficulty = 4;
37
        }
38
        if (_rand == 1)
39
        {
40
            myattackchoice = 6;
41
            difficulty = 0;
42
        }
43
    }
44
}
45
if (datecount == 1)
46
{
47
    if (phaseturns > 4)
48
        phaseturns = 0;
49
    if (phaseturns == 0)
50
    {
51
        myattackchoice = 3;
52
        difficulty = 0;
53
    }
54
    if (phaseturns == 1)
55
    {
56
        myattackchoice = 4;
57
        difficulty = 0;
58
    }
59
    if (phaseturns == 2)
60
    {
61
        myattackchoice = 6;
62
        difficulty = 4;
63
    }
64
    if (phaseturns == 3)
65
    {
66
        myattackchoice = 5;
67
        difficulty = 1;
68
    }
69
    if (phaseturns == 4)
70
    {
71
        myattackchoice = 3;
72
        difficulty = 2;
73
        looping = true;
74
    }
75
}
76
if (datecount == 2 || datecount == 3)
77
{
78
    if (phaseturns == 0)
79
    {
80
        myattackchoice = 3;
81
        difficulty = 1;
82
    }
83
    if (phaseturns == 1)
84
    {
85
        myattackchoice = 6;
86
        difficulty = 2;
87
    }
88
    if (phaseturns == 2)
89
    {
90
        myattackchoice = 1;
91
        difficulty = 2;
92
    }
93
    if (phaseturns == 3)
94
    {
95
        myattackchoice = 4;
96
        difficulty = 1;
97
    }
98
    if (phaseturns == 4)
99
    {
100
        myattackchoice = 1;
101
        difficulty = 3;
102
    }
103
    if (phaseturns == 5)
104
    {
105
        myattackchoice = 6;
106
        difficulty = 3;
107
    }
108
    if (phaseturns >= 6)
109
    {
110
        myattackchoice = 5;
111
        difficulty = 2;
112
        phaseturns = 2;
113
    }
114
}
115
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("turn: " + string(turns));
116
if (myattackchoice == 1)
117
    
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("myattackchoice: cats");
118
if (myattackchoice == 2)
119
    
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("myattackchoice: bombs");
120
if (myattackchoice == 3)
121
    
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("myattackchoice: rotating box");
122
if (myattackchoice == 4)
123
    
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("myattackchoice: 3d tunnel");
124
if (myattackchoice == 5)
125
    
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("myattackchoice: sing");
126
scr_debug_print
scr_debug_print

function
scr_debug_print()
{ if (!
scr_debug())
exit; } function scr_debug_clear_all() { }
("difficulty: " + string(difficulty));