Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_rndenc_Other_4

(view raw script w/o annotations or w/e)
1
var specific_encounter = "null"
2
switch room
3
{
4
    case rm_darkruins_13:
5
        specific_encounter = "flier trio"
6
        if (global.flag[17 Dalv fate] != 0)
7
            specific_encounter = "null"
8
        break
9
}
10
11
if (specific_encounter != "null")
12
    ds_list_add(global.encounter_list, specific_encounter)
13
scr_determine_world_value_yellow
scr_determine_world_value_yellow

function scr_determine_world_value_yellow() //gml_Script_scr_determine_world_value_yellow { if (room != rm_battle && room != rm_shop && room != rm_mainmenu && room != rm_death_screen) global.current_room_overworld = room_get_name(room) var current_room_overworld = global.current_room_overworld switch current_room_overworld { case "rm_ruins_01_yellow": case "rm_ruins_02_yellow": case "rm_ruins_03_yellow": case "rm_ruins_04_yellow": case "rm_ruins_05_yellow": case "rm_ruins_06_yellow": return 0; case "rm_darkruins_01": case "rm_darkruins_02": case "rm_darkruins_03": case "rm_darkruins_04": case "rm_darkruins_05": case "rm_darkruins_06": case "rm_darkruins_07": case "rm_darkruins_08": case "rm_darkruins_08b": case "rm_darkruins_09": case "rm_darkruins_09b": case "rm_darkruins_10": case "rm_darkruins_11": case "rm_darkruins_12": case "rm_darkruins_13": case "rm_darkruins_14": case "rm_darkruins_14b": case "rm_darkruins_15": case "rm_darkruins_16": case "rm_darkruins_16b": case "rm_darkruins_16c": case "rm_darkruins_17": case "rm_darkruins_18": case "rm_dalvhallway": case "rm_dalvshouse": case "rm_dalvsroom": case "rm_dalvroomhall": case "rm_dalvExit": return 1; case "rm_snowdin_01_yellow": case "rm_snowdin_02_yellow": case "rm_snowdin_03_yellow": case "rm_snowdin_03b_yellow": case "rm_snowdin_04_yellow": case "rm_snowdin_05_yellow": case "rm_snowdin_06_yellow": case "rm_snowdin_07_yellow": case "rm_snowdin_08_yellow": case "rm_snowdin_08b_yellow": case "rm_snowdin_09_yellow": case "rm_snowdin_10_yellow": case "rm_snowdin_11_yellow": case "rm_snowdin_12_yellow": case "rm_snowdin_13_yellow": case "rm_snowdin_14_yellow": case "rm_snowdin_14b_yellow": case "rm_snowdin_14c_yellow": case "rm_snowdin_14d_yellow": case "rm_snowdin_14e_yellow": case "rm_snowdin_15_yellow": case "rm_snowdin_16_yellow": case "rm_snowdin_16b_yellow": case "rm_snowdin_17_yellow": case "rm_snowdin_18_yellow": case "rm_snowdin_19_yellow": case "rm_snowdin_20_yellow": case "rm_snowdin_21_yellow": case "rm_snowdin_22_yellow": return 2; case "rm_dunes_01": case "rm_dunes_02": case "rm_dunes_03": case "rm_dunes_04": case "rm_dunes_05": case "rm_dunes_06": case "rm_dunes_07": case "rm_dunes_08": case "rm_dunes_08b": case "rm_dunes_09": case "rm_dunes_10": case "rm_dunes_11": case "rm_dunes_12": case "rm_dunes_12b": case "rm_dunes_13": case "rm_dunes_14": case "rm_dunes_15": case "rm_dunes_16": case "rm_dunes_17": case "rm_dunes_18": case "rm_dunes_19": case "rm_dunes_19B": case "rm_dunes_20": case "rm_dunes_21": case "rm_dunes_22": case "rm_dunes_23": case "rm_dunes_24": case "rm_dunes_25": ...
()
14
switch room
15
{
16
    case rm_darkruins_04:
17
        global.kill_area_current = 0
18
        break
19
    case 18:
20
        global.kill_area_current = 1
21
        break
22
    case 24:
23
        global.kill_area_current = 2
24
        break
25
    case 20:
26
        global.kill_area_current = 3
27
        break
28
    case 22:
29
        global.kill_area_current = 4
30
        break
31
    case 26:
32
        global.kill_area_current = 5
33
        break
34
    case 27:
35
        global.kill_area_current = 6
36
        break
37
    case 47:
38
        global.kill_area_current = 0
39
        break
40
    case 48:
41
        global.kill_area_current = 1
42
        break
43
    case 51:
44
        global.kill_area_current = 2
45
        break
46
    case 54:
47
        global.kill_area_current = 3
48
        break
49
    case 61:
50
        global.kill_area_current = 4
51
        break
52
    case 64:
53
        global.kill_area_current = 5
54
        break
55
    case 67:
56
        global.kill_area_current = 6
57
        break
58
    case 68:
59
        global.kill_area_current = 7
60
        break
61
    case 79:
62
        global.kill_area_current = 0
63
        break
64
    case 80:
65
        global.kill_area_current = 1
66
        break
67
    case 81:
68
        global.kill_area_current = 2
69
        break
70
    case 82:
71
        global.kill_area_current = 3
72
        break
73
    case 84:
74
        global.kill_area_current = 4
75
        break
76
    case 87:
77
        global.kill_area_current = 5
78
        break
79
    case 88:
80
        global.kill_area_current = 6
81
        break
82
    case 95:
83
        global.kill_area_current = 7
84
        break
85
    case 113:
86
        global.kill_area_current = 8
87
        break
88
    case 164:
89
        global.kill_area_current = 0
90
        break
91
    case 169:
92
        global.kill_area_current = 1
93
        break
94
    case 173:
95
        global.kill_area_current = 2
96
        break
97
    case 176:
98
        global.kill_area_current = 3
99
        break
100
    case 177:
101
        global.kill_area_current = 4
102
        break
103
    case 190:
104
        global.kill_area_current = 5
105
        break
106
    case 195:
107
        global.kill_area_current = 6
108
        break
109
    case 196:
110
        global.kill_area_current = 7
111
        break
112
    case 198:
113
        global.kill_area_current = 8
114
        break
115
    case 199:
116
        global.kill_area_current = 9
117
        break
118
    case 200:
119
        global.kill_area_current = 10
120
        break
121
    case 281:
122
        global.kill_area_current = 11
123
        break
124
    case 202:
125
        global.kill_area_current = 12
126
        break
127
    case 204:
128
        global.kill_area_current = 13
129
        break
130
}