Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_summary_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
display_set_gui_size(640, 480)
4
draw_set_color(c_black)
5
draw_set_alpha(draw_alpha)
6
draw_rectangle(0, 0, 640, 480, false)
7
draw_set_alpha(1)
8
draw_set_halign(fa_left)
9
var route = "Pacifist"
10
if (global.route == 1)
11
    route = "Neutral"
12
if (global.route == 3)
13
    route = "Geno"
14
var fullname = "Clover"
15
if (global.snowdin_flag[15] != 1)
16
    fullname = "Gun-Hat"
17
var slurpy = "No..."
18
if (global.snowdin_flag[3] == 2)
19
    slurpy = "Yes"
20
var enemies_killed = 0
21
for (var i = 1; i < array_length_1d(global.kill_number); i++)
22
    enemies_killed += (20 - global.kill_number[i])
23
var funvalue = string(global.fun_value)
24
if (funvalue == "100")
25
    funvalue = "420"
26
draw_set_font(fnt_battle)
27
draw_set_color(c_white)
28
var xx = 20
29
var yy = 140
30
draw_text(xx, (yy - 20), ("ROUTE: " + route))
31
draw_text(xx, yy, ("FULL NAME: " + fullname))
32
draw_text(xx, (yy + 20), ("PLAYTIME: " + string(playtime)))
33
draw_set_halign(fa_left)
34
draw_text(xx, (yy + 55), ("FUN VALUE: " + funvalue))
35
draw_text(xx, (yy + 125), ("BOSSES KILLED: " + string(killed_bosses)))
36
draw_text(xx, (yy + 145), ("ENEMIES KILLED: " + string(enemies_killed)))
37
draw_text(xx, (yy + 165), ("TIMES HIT: " + string(global.hit_tracker)))
38
draw_text(xx, (yy + 90), ("GOLD SPENT: " + string(global.gold_spent)))
39
draw_text(xx, (yy + 240), ("TIMES MO BROKE THE LAW: " + string(floor(monumber_current))))
40
draw_text(xx, (yy + 270), "Share this in the\ncompletion cards channel!")
41
draw_set_halign(fa_right)
42
draw_text((xx + 220), (yy - 20), ("LEVEL: " + string(global.player_level)))
43
draw_text((xx + 220), yy, ("TOTAL EXP: " + string(global.player_exp)))
44
draw_text((xx + 220), (yy + 20), ("DEATH COUNT: " + string(global.death_count_total)))
45
draw_text((xx + 220), (yy + 55), ("SLRUPY SAVED: " + slurpy))
46
draw_text((xx + 220), (yy + 90), ("TOTAL GOLD: " + string(global.gold_amount_total)))
47
draw_set_color(make_color_rgb(1, 1, 1))
48
draw_text(xx, (yy + 340), "#breaktheshufflers")