Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_scriptedencounters_Collision_obj_pl

(view raw script w/o annotations or w/e)
1
instance_create((obj_pl.x - 4), (obj_pl.y - 26), obj_exclamation_mark)
2
global.battle_enemy_name = enc_name[0]
3
for (var i = 0; i < array_length_1d(enc_name); i++)
4
    ds_list_add(global.encounter_list, enc_name[i])
5
global.current_room_overworld = room_get_name(room)
6
global.battling_boss = false
7
global.battle_start = true
8
enc_flag = true
9
instance_destroy()
10
if (ds_map_find_value(global.npc_map, npc_id) != enc_flag)
11
    ds_map_replace(global.npc_map, npc_id, enc_flag)