Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_steam_puffs_creator_Create_0

(view raw script w/o annotations or w/e)
1
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); }
();
2
alarm[0] = 1;
gml_Object_obj_battle_enemy_attack_steam_puffs_creator_Alarm_0.gml

var box = 3154; var puff_width = sprite_get_width(spr_attack_steam_puff); var puff_height = sprite_get_height(spr_attack_steam_puff); var puff_x_1 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); var puff_x_2 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); while (puff_x_1 == puff_x_2) puff_x_2 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); while ((puff_x_1_last == puff_x_1 || puff_x_1_last == puff_x_2) && (puff_x_2_last == puff_x_1 || puff_x_2_last == puff_x_2)) { puff_x_1 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); puff_x_2 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); while (puff_x_1 == puff_x_2) puff_x_2 = choose(box.bbox_left + puff_width, box.x, box.bbox_right - puff_width); } var smoke_1 = instance_create_depth(puff_x_1, box.bbox_bottom - puff_height, -9999, obj_battle_enemy_attack_smoke_puff); var smoke_2 = instance_create_depth(puff_x_2, box.bbox_bottom - puff_height, -9999, obj_battle_enemy_attack_smoke_puff); attack_count -= 1; puff_x_1_last = puff_x_1; puff_x_2_last = puff_x_2; if (attack_count <= 0 && !alarm[1]) alarm[1] = 45; alarm[0] = 24;
3
attack_count = 4;
4
puff_x_1_last = 0;
5
puff_x_2_last = 0;