Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dalv_no_attack

(view raw script w/o annotations or w/e)
1
function scr_dalv_no_attack
scr_dalv_no_attack

function scr_dalv_no_attack() { global.action_1_selected_count = 0; global.action_2_selected_count = 0; global.turns_passed += 1; global.last_action_selected = "Nothing"; global.hurt_self = global.hit_self; global.hit_self = false; global.enemy_hurt = global.enemy_hit; global.enemy_hit = false; global.item_used = global.item_use; global.item_use = "Nothing"; global.item_gifted = global.item_gift; global.item_gift = "Nothing"; global.determine_attack_priority = 1; script_execute(scr_determine_enemy_attack_yellow); with (obj_heart_battle_menu) event_user(0); instance_destroy(); }
()
2
{
3
    global.action_1_selected_count = 0;
4
    global.action_2_selected_count = 0;
5
    global.turns_passed += 1;
6
    global.last_action_selected = "Nothing";
7
    global.hurt_self = global.hit_self;
8
    global.hit_self = false;
9
    global.enemy_hurt = global.enemy_hit;
10
    global.enemy_hit = false;
11
    global.item_used = global.item_use;
12
    global.item_use = "Nothing";
13
    global.item_gifted = global.item_gift;
14
    global.item_gift = "Nothing";
15
    global.determine_attack_priority = 1;
16
    script_execute(scr_determine_enemy_attack_yellow);
17
    with (obj_heart_battle_menu)
18
        event_user(0);
19
    instance_destroy();
20
}