Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_portrait_counter_idle

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

function scr_portrait_counter_idle() //gml_Script_scr_portrait_counter_idle { if (characters == message_length && portrait[message_current] != -4) { if (portrait_counter_idle >= 1) { portrait_counter_idle -= 1 portrait_image_index_idle += 1 if (portrait_image_index_idle > portrait_image_index_max_idle) portrait_image_index_idle = 0 } portrait_counter_idle += (portrait_image_speed_idle * hold) } else { portrait_counter_idle = 0 portrait_image_index_idle = 0 } }
() //gml_Script_scr_portrait_counter_idle
2
{
3
    if (characters == message_length && portrait[message_current] != -4)
4
    {
5
        if (portrait_counter_idle >= 1)
6
        {
7
            portrait_counter_idle -= 1
8
            portrait_image_index_idle += 1
9
            if (portrait_image_index_idle > portrait_image_index_max_idle)
10
                portrait_image_index_idle = 0
11
        }
12
        portrait_counter_idle += (portrait_image_speed_idle * hold)
13
    }
14
    else
15
    {
16
        portrait_counter_idle = 0
17
        portrait_image_index_idle = 0
18
    }
19
}