Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_summary_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
scene = 0
4
cutscene_timer = 0
5
draw_alpha = 1
6
obj_pl.image_alpha = 0
7
var string_hours = string(global.elapsed_seconds div 3600)
8
var string_minutes = string((global.elapsed_seconds div 60) % 60)
9
var string_seconds = string(global.elapsed_seconds % 60)
10
if (real(string_hours) < 10)
11
    string_hours = "0" + string_hours
12
if (real(string_minutes) < 10)
13
    string_minutes = "0" + string_minutes
14
if (real(string_seconds) < 10)
15
    string_seconds = "0" + string_seconds
16
playtime = string_hash_to_newline(string_hours + ":" + string_minutes + ":" + string_seconds)
17
boss_list = ds_list_create()
18
if (global.flag[17 Dalv fate] == 2)
19
    ds_list_add(boss_list, "Da")
20
if (global.flag[15 Decibat fate] == 3)
21
    ds_list_add(boss_list, "De")
22
if (global.dunes_flag[24] == 2)
23
    ds_list_add(boss_list, "St")
24
if (global.sworks_flag[31] == 3)
25
    ds_list_add(boss_list, "Ax")
26
killed_bosses = ""
27
for (var i = 0; i < ds_list_size(boss_list); i++)
28
{
29
    if (i != 0)
30
        killed_bosses = string_insert(", ", killed_bosses, (string_length(killed_bosses) - 1))
31
    killed_bosses = string_insert(ds_list_find_value(boss_list, i), killed_bosses, (string_length(killed_bosses) - 1))
32
}
33
if (killed_bosses == "")
34
    killed_bosses = "NONE"
35
monumber = irandom_range(100, 9000)
36
monumber_current = monumber