Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_east_cutscene_manager_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route == 2 && global.sworks_flag[40] == 2 && global.dunes_flag[41] == 0)
2
{
3
    instance_create(0, 0, obj_wild_east_endgame_cutscene_01)
4
    instance_destroy()
5
    return;
6
}
7
if (global.route == 3 && global.geno_complete[3] == true)
8
{
9
    instance_create(0, 0, obj_wild_east_cutscene_01_murder)
10
    instance_destroy()
11
    return;
12
}
13
switch global.dunes_flag[20]
14
{
15
    case 0:
16
        instance_create(0, 0, obj_wild_east_cutscene_01)
17
        break
18
    case 2:
19
        instance_create(0, 0, obj_wild_east_cutscene_02)
20
        break
21
    case 4:
22
        instance_create(0, 0, obj_wild_east_cutscene_03)
23
        break
24
    case 6:
25
        instance_create(0, 0, obj_wild_east_cutscene_04)
26
        break
27
    case 8:
28
        instance_create(0, 0, obj_wild_east_cutscene_05)
29
        break
30
    default:
31
        instance_create(720, 380, obj_determination)
32
        break
33
}
34
35
switch global.dunes_flag[20]
36
{
37
    case 1:
38
        instance_create(986, 367, obj_npc_ace_break_1)
39
        instance_create(249, 382, obj_npc_ed_break_1)
40
        instance_create(910, 277, obj_npc_moray_break_1)
41
        instance_create(556, 319, obj_npc_mooch_break_1)
42
        instance_create(466, 380, obj_npc_happycactus)
43
        obj_npc_mooch_break_1.npc_direction = "right"
44
        break
45
    case 3:
46
        instance_create(645, 188, obj_npc_ace_break_2)
47
        instance_create(245, 377, obj_npc_mooch_break_2)
48
        instance_create(465, 381, obj_npc_kangarufus)
49
        instance_create(984, 362, obj_npc_virgil_break_2)
50
        break
51
    case 4:
52
    case 5:
53
        instance_create(852, 218, obj_npc_cooper_break_3)
54
        instance_create(309, 365, obj_npc_gamer)
55
        instance_create(110, 493, obj_npc_virgil_break_3)
56
        break
57
    case 6:
58
    case 7:
59
        instance_create(852, 218, obj_npc_cooper_break_3)
60
        instance_create(466, 376, obj_barnpc_wildeast)
61
        break
62
    case 8:
63
        break
64
    case 9:
65
        if (global.dunes_flag[24] == 1)
66
        {
67
            instance_create(780, 226, obj_npc_cowcat_break_6)
68
            instance_create(960, 366, obj_npc_happycactus_break_6)
69
            instance_create(466, 378, obj_npc_gamer_break_6)
70
        }
71
        if (global.dunes_flag[24] == 2)
72
            instance_create(201, 375, obj_npc_mooch_break_6)
73
        break
74
}
75
76
instance_destroy()