Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_attack_8_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var box = obj_dialogue_box_battle_transformation_any
4
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() //gml_Script_scr_enable_battle_box_surface { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer) }
()
5
scene = 0
6
cutscene_timer = 0
7
grass_current = 0
8
grass_spawn_x = box.bbox_left + 30
9
grass_spawn_y = box.bbox_bottom - 30
10
grass_spawn_x_ar = [grass_spawn_x, (grass_spawn_x + 40), (grass_spawn_x + 80), (box.bbox_right - 4), (box.bbox_right - 4), (box.bbox_right - 4), (grass_spawn_x + 80), (grass_spawn_x + 40), grass_spawn_x, (box.bbox_left + 4), (box.bbox_left + 4), (box.bbox_left + 4)]
11
grass_spawn_y_ar = [(box.bbox_bottom - 4), (box.bbox_bottom - 4), (box.bbox_bottom - 4), grass_spawn_y, (grass_spawn_y - 40), (grass_spawn_y - 80), (box.bbox_top + 4), (box.bbox_top + 4), (box.bbox_top + 4), (grass_spawn_y - 80), (grass_spawn_y - 40), grass_spawn_y]
12
grass_spawn_direction = [90, 90, 90, 180, 180, 180, 270, 270, 270, 0, 0, 0]