Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_jandroid_garbage_cans_duo_generator_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
excluded_number = 0;
4
attack_timer = room_speed * 9;
5
alarm[2] = attack_timer;
6
var box = 3154;
7
instance_create_depth(box.x - 120, box.bbox_top - 60, obj_heart_battle_fighting_parent.depth - 1, obj_battle_enemy_attack_jandroid_garbage_can);
8
obj_battle_enemy_attack_jandroid_garbage_can.spawn_timer_max = 15;
9
attack_interval = 50;
10
alarm[0] = 45;
gml_Object_obj_battle_enemy_attack_jandroid_garbage_cans_duo_generator_Alarm_0.gml

var box = 3154; excluded_number = irandom_range(1, 3); if (excluded_number != 1) instance_create_depth(box.bbox_left + 10, box.bbox_top + 24, obj_heart_battle_fighting_parent.depth - 1, obj_attack_warning_exclamation_mark); if (excluded_number != 2) instance_create_depth(box.bbox_right - 10, box.y, obj_heart_battle_fighting_parent.depth - 1, obj_attack_warning_exclamation_mark); if (excluded_number != 3) instance_create_depth(box.bbox_left + 10, box.bbox_bottom - 24, obj_heart_battle_fighting_parent.depth - 1, obj_attack_warning_exclamation_mark); alarm[1] = 15;
11
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer); }
();
12
instance_create(obj_dialogue_box_battle_transformation_any.bbox_left - 25, obj_dialogue_box_battle_transformation_any.y, obj_battle_enemy_attack_jandroid_slippery_floor_warning);