Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_catapult_frame_stack_Step_0

(view raw script w/o annotations or w/e)
1
if (x > x_destination)
2
{
3
    x -= move_speed
4
    if (x <= x_destination)
5
    {
6
        x = x_destination
7
        launch_alarm_active = true
8
        alarm[0] = launch_alarm
alarm[0]

if (launch_count == launch_max) { instance_destroy() return; } else if (launch_count == 0) { with (id_arm) launch_state = 2 } else { with (id_arm) launch_state = 1 } launch_count += 1 launch_alarm_active = false
9
    }
10
    for (i = 0; i < random_frames; i++)
11
    {
12
        with (id_frame_middle[i])
13
            event_user(0)
14
    }
15
    with (id_frame_center)
16
        event_user(0)
17
}
18
else if (launch_alarm_active == false && id_arm.launch_state == 0)
19
{
20
    launch_alarm_active = true
21
    alarm[0] = launch_alarm
alarm[0]

if (launch_count == launch_max) { instance_destroy() return; } else if (launch_count == 0) { with (id_arm) launch_state = 2 } else { with (id_arm) launch_state = 1 } launch_count += 1 launch_alarm_active = false
22
}