Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_ed_grab_moray_sword_controller_Create_0

(view raw script w/o annotations or w/e)
1
var battle_box = obj_dialogue_box_battle_transformation_any
2
attack_timer = room_speed * 8
3
sword_dist = 100
4
sword_spawn_y = irandom_range((battle_box.bbox_top + 10), (battle_box.bbox_bottom - 10))
5
sword_spawn_y_2 = sword_spawn_y + 70
6
if (sword_spawn_y > 320)
7
    sword_spawn_y_2 = sword_spawn_y - 70
8
alarm[0] = room_speed * 5
alarm[0]

var battle_box = obj_dialogue_box_battle_transformation_any instance_create_depth((battle_box.bbox_left - 4), sword_spawn_y_2, -50, obj_attack_ed_grab_moray_sword_sword)
9
instance_create((camera_get_view_width(view_camera[0]) + 51), battle_box.y, obj_attack_ed_grab_hand)
10
instance_create_depth((battle_box.bbox_left - 4), sword_spawn_y, -50, obj_attack_ed_grab_moray_sword_sword)