Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_game_time_add

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

function scr_game_time_add() //gml_Script_scr_game_time_add { global.game_time_counter_add += 1 if (global.game_time_counter_add >= room_speed) { global.game_time_seconds_add += 1 global.game_time_counter_add -= room_speed } if (global.game_time_seconds_add >= 60) { global.game_time_minutes_add += 1 global.game_time_seconds_add -= 60 } }
() //gml_Script_scr_game_time_add
2
{
3
    global.game_time_counter_add += 1
4
    if (global.game_time_counter_add >= room_speed)
5
    {
6
        global.game_time_seconds_add += 1
7
        global.game_time_counter_add -= room_speed
8
    }
9
    if (global.game_time_seconds_add >= 60)
10
    {
11
        global.game_time_minutes_add += 1
12
        global.game_time_seconds_add -= 60
13
    }
14
}