Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_darkruins_01_rope_Alarm_1

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

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
2
obj_pl.image_alpha = 1
3
game_restart()
4
instance_create(0, 0, obj_darkruins_01_resettext)
5
scr_initialize
scr_initialize

function scr_initialize() //gml_Script_scr_initialize { randomize() global.player_level = 1 global.current_hp_self = 20 global.max_hp_self = 20 global.max_hp_boosted = 20 global.player_x = 150 global.player_y = 140 global.player_direction = "down" global.player_area = "" global.player_area_value = 0 global.player_can_run = true global.current_pp_self = 0 global.max_pp_self = 99 global.current_sp_self = 0 global.max_sp_self = 99 global.current_rp_self = 0 global.max_rp_self = 99 global.player_gold = 0 global.player_sprites = "normal" global.player_name = "Clover" global.party_member = -4 global.player_attack = 10 global.player_defense = 10 global.player_speed = 3 global.player_invulnerability = 30 global.player_exp = 0 global.player_weapon = "Toy Gun" global.player_armor = "Worn Hat" global.player_weapon_modifier = "Rubber Ammo" global.player_armor_modifier = "Patch" global.player_weapon_attack = script_execute(gml_Script_scr_determine_weapon_attack) global.player_armor_defense = script_execute(gml_Script_scr_determine_armor_defense) global.player_weapon_modifier_attack = script_execute(gml_Script_scr_determine_weapon_modifier_attack) global.player_armor_modifier_defense = script_execute(gml_Script_scr_determine_armor_modifier_defense) global.player_has_satchel = false global.player_can_travel = false global.saved_datetime = date_current_datetime() global.elapsed_seconds = 0 global.last_room_overworld = "rm_ruins_01" global.story = 0 global.lastroom = 7 scr_init_flags_ruins() scr_init_flags_snowdin() scr_init_flags_dunes() scr_init_flags_steamworks() scr_init_flags_hotland() scr_init_flags_flowey() global.flowey_death_pop = 0 global.flowey_save_number = 1 global.fighting_flowey = 0 global.flowey_battle_1_phase = 0 global.save_count = 0 global.extra_flag[1] = false global.extra_flag[2] = false global.extra_flag[3] = false global.extra_flag[4] = false global.extra_flag[5] = false global.extra_flag[6] = false global.extra_flag[7] = false global.extra_flag[8] = false global.extra_flag[9] = false global.encounter_flag[0] = 0 global.route = 2 global.kill_number[0] = 9999 global.kill_area[0][0] = 9999 global.kill_number[1] = 20 for (var i = 0; i <= 6; i++) global.kill_area[1][i] = 5 global.kill_number[2] = 20 for (i = 0; i <= 7; i++) global.kill_area[2][i] = 5 global.kill_number[3] = 20 for (i = 0; i <= 8; i++) global.kill_area[3][i] = 3 global.kill_number[4] = 20 for (i = 0; i <= 12; i++) global.kill_area[4][i] = 3 global.kill_area_current = 0 global.flGenoCutscene = 0 global.geno_complete[1] = false global.geno_complete[2] = false global.geno_complete[3] = false global.geno_complete[4] = false global.geno_complete[5] = false global.item_stock[0] = 1 global.item_stock[1] = 1 global.item_stock[2] = 1 global.item_stock[3] = 1 global.item_stock[4] = 1 global.item_stock[5] = 1 global.item_stock[6] = 1 global.item_stock[7] = 1 global.item_stock[8] = 3 global.item_stock[9] = 1 global.item_stock[10] = 1 global.item_stock[11] = 1 global.item_stock[12] = 2 global.item_stock[13] = 2 global.item_stock[14] = 1 ...
()
6
application_surface_draw_enable(true)