Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_sneo_wall_create

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

function
scr_sneo_wall_create(arg0, arg1, arg2, arg3, arg4, arg5, arg6)
{ if (arg0 == 0) { } if (arg0 == 1) emptyspot1[wallsetupcount] = 1; if (arg0 == 2) breakspot1[wallsetupcount] = 1; if (arg0 == 3) pipispot1[wallsetupcount] = 1; if (arg0 == 4) redbreakspot1[wallsetupcount] = 1; if (arg1 == 0) { } if (arg1 == 1) emptyspot2[wallsetupcount] = 2; if (arg1 == 2) breakspot2[wallsetupcount] = 2; if (arg1 == 3) pipispot2[wallsetupcount] = 2; if (arg1 == 4) redbreakspot2[wallsetupcount] = 2; if (arg2 == 0) { } if (arg2 == 1) emptyspot3[wallsetupcount] = 3; if (arg2 == 2) breakspot3[wallsetupcount] = 3; if (arg2 == 3) pipispot3[wallsetupcount] = 3; if (arg2 == 4) redbreakspot3[wallsetupcount] = 3; if (arg3 == 0) { } if (arg3 == 1) emptyspot4[wallsetupcount] = 4; if (arg3 == 2) breakspot4[wallsetupcount] = 4; if (arg3 == 3) pipispot4[wallsetupcount] = 4; if (arg3 == 4) redbreakspot4[wallsetupcount] = 4; if (arg4 == 0) { } if (arg4 == 1) emptyspot5[wallsetupcount] = 5; if (arg4 == 2) breakspot5[wallsetupcount] = 5; if (arg4 == 3) pipispot5[wallsetupcount] = 5; if (arg4 == 4) redbreakspot5[wallsetupcount] = 5; wallcreatetimer[wallsetupcount] = arg5; walltype[wallsetupcount] = arg6; wallsetupcount++; }
(arg0, arg1, arg2, arg3, arg4, arg5, arg6)
2
{
3
    if (arg0 == 0)
4
    {
5
    }
6
    if (arg0 == 1)
7
        emptyspot1[wallsetupcount] = 1;
8
    if (arg0 == 2)
9
        breakspot1[wallsetupcount] = 1;
10
    if (arg0 == 3)
11
        pipispot1[wallsetupcount] = 1;
12
    if (arg0 == 4)
13
        redbreakspot1[wallsetupcount] = 1;
14
    if (arg1 == 0)
15
    {
16
    }
17
    if (arg1 == 1)
18
        emptyspot2[wallsetupcount] = 2;
19
    if (arg1 == 2)
20
        breakspot2[wallsetupcount] = 2;
21
    if (arg1 == 3)
22
        pipispot2[wallsetupcount] = 2;
23
    if (arg1 == 4)
24
        redbreakspot2[wallsetupcount] = 2;
25
    if (arg2 == 0)
26
    {
27
    }
28
    if (arg2 == 1)
29
        emptyspot3[wallsetupcount] = 3;
30
    if (arg2 == 2)
31
        breakspot3[wallsetupcount] = 3;
32
    if (arg2 == 3)
33
        pipispot3[wallsetupcount] = 3;
34
    if (arg2 == 4)
35
        redbreakspot3[wallsetupcount] = 3;
36
    if (arg3 == 0)
37
    {
38
    }
39
    if (arg3 == 1)
40
        emptyspot4[wallsetupcount] = 4;
41
    if (arg3 == 2)
42
        breakspot4[wallsetupcount] = 4;
43
    if (arg3 == 3)
44
        pipispot4[wallsetupcount] = 4;
45
    if (arg3 == 4)
46
        redbreakspot4[wallsetupcount] = 4;
47
    if (arg4 == 0)
48
    {
49
    }
50
    if (arg4 == 1)
51
        emptyspot5[wallsetupcount] = 5;
52
    if (arg4 == 2)
53
        breakspot5[wallsetupcount] = 5;
54
    if (arg4 == 3)
55
        pipispot5[wallsetupcount] = 5;
56
    if (arg4 == 4)
57
        redbreakspot5[wallsetupcount] = 5;
58
    wallcreatetimer[wallsetupcount] = arg5;
59
    walltype[wallsetupcount] = arg6;
60
    wallsetupcount++;
61
}