Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_snowcastle_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
npc_id = room_get_name(room) + object_get_name(object_index)
4
if is_undefined(ds_map_find_value(global.npc_map, npc_id))
5
    ds_map_add(global.npc_map, npc_id, 0)
6
npc_flag = ds_map_find_value(global.npc_map, npc_id)
7
image_speed = 0
8
is_talking = 0
9
interact = false
10
scene = 0
11
snow_cutscene = false
12
if (npc_flag == 1)
13
    image_index = 12
14
if (npc_flag >= 2)
15
    image_index = image_number - 1