Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_scripted_encounter_random_Collision_obj_pl

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_rndenc))
2
    return;
3
obj_rndenc.enc_time = 0
4
enc_flag = true
5
instance_destroy()
6
if (ds_map_find_value(global.npc_map, npc_id) != enc_flag)
7
    ds_map_replace(global.npc_map, npc_id, enc_flag)