Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_aqua_enemy_Other_11

(view raw script w/o annotations or w/e)
1
if (fight_type == "solo")
2
{
3
    switch (turn % 3)
4
    {
5
        case 0:
6
            myattackchoice = 1;
7
            break;
8
        case 1:
9
            myattackchoice = 0;
10
            break;
11
        case 2:
12
            myattackchoice = 2;
13
            break;
14
    }
15
    turn++;
16
    if (global.mercymod[myself] == 100 || omega_switch)
17
    {
18
        myattackchoice = 3;
19
        with (obj_battlecontroller)
20
            noreturn = true;
21
    }
22
}
23
else if (fight_type == "seth")
24
{
25
    if (turns == 0)
26
    {
27
        switch (global.flag[1313])
28
        {
29
            case 0:
30
                myattackchoice = 4;
31
                break;
32
            case 1:
33
                myattackchoice = 0;
34
                break;
35
            case 2:
36
                myattackchoice = 1;
37
                break;
38
            case 3:
39
                myattackchoice = 2;
40
                break;
41
            case 4:
42
                myattackchoice = 3;
43
                break;
44
        }
45
    }
46
    if (turns == 1 && !phasehit)
47
    {
48
        if (myattackchoice != 1)
49
            myattackchoice = 1;
50
        else
51
            myattackchoice = 2;
52
    }
53
    if (turns == 2)
54
    {
55
        previous_attack = myattackchoice;
56
        myattackchoice = 5;
57
    }
58
    if (turns == 3)
59
    {
60
        if (!phasehit)
61
            myattackchoice = previous_attack;
62
        else
63
            myattackchoice = 5;
64
    }
65
    if (turns == 4)
66
        myattackchoice = 0;
67
    with (obj_purple_enemy)
68
        duck_hit = other.phasehit;
69
    phasehit = false;
70
    talked = 2;
71
}