Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_target_bar_battle_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(gml_Script_scr_controls_battle_target)
2
if (x >= 594 && no_loop == false)
3
{
4
    hsp = 0
5
    image_alpha = 0
6
    alarm[0] = 1
alarm[0]

dd_type = "Knife Single" event_user(0)
7
    no_loop = true
8
}
9
if key_select
10
{
11
    hsp = 0
12
    image_speed = 0.2
13
    if (global.fight_number == 1)
14
        instance_create(global.enemy_target_x, global.enemy_target_y, obj_strike)
15
    else if (global.fight_number == 2)
16
        instance_create(global.enemy_target_x_2, global.enemy_target_y_2, obj_strike)
17
    else if (global.fight_number == 3)
18
        instance_create(global.enemy_target_x_3, global.enemy_target_y_3, obj_strike)
19
    button_pressed = true
20
}
21
x += hsp