Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_isphase

(view raw script w/o annotations or w/e)
1
function scr_isphase
scr_isphase

function scr_isphase(arg0) { __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
(arg0)
2
{
3
    __isphase = 0;
4
    if (arg0 == "menu" && global.myfight == 0)
5
        __isphase = 1;
6
    if (arg0 == "acting" && global.myfight == 3)
7
        __isphase = 1;
8
    if (arg0 == "victory" && global.myfight == 7)
9
        __isphase = 1;
10
    if (arg0 == "attack" || arg0 == "fight")
11
    {
12
        if (global.myfight == 1)
13
            __isphase = 1;
14
    }
15
    if (arg0 == "spell" || arg0 == "item")
16
    {
17
        if (global.myfight == 4)
18
            __isphase = 1;
19
    }
20
    if (arg0 == "enemytalk" || arg0 == "balloon")
21
    {
22
        if (global.mnfight == 1)
23
            __isphase = 1;
24
    }
25
    if (arg0 == "enemyattack" || arg0 == "bullets")
26
    {
27
        if (global.mnfight == 2)
28
            __isphase = 1;
29
    }
30
    return __isphase;
31
}