Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_martlet_pacifist_no_attack

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

function scr_martlet_pacifist_no_attack() //gml_Script_scr_martlet_pacifist_no_attack { 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" if (global.last_text_move_select < 1) global.last_text_move_select += 1 global.determine_attack_priority = 1 script_execute(gml_Script_scr_determine_enemy_attack_yellow) if (global.important_cutscene == false) { with (obj_heart_battle_menu) event_user(0) } instance_destroy() }
() //gml_Script_scr_martlet_pacifist_no_attack
2
{
3
    global.turns_passed += 1
4
    global.last_action_selected = "Nothing"
5
    global.hurt_self = global.hit_self
6
    global.hit_self = false
7
    global.enemy_hurt = global.enemy_hit
8
    global.enemy_hit = false
9
    global.item_used = global.item_use
10
    global.item_use = "Nothing"
11
    global.item_gifted = global.item_gift
12
    global.item_gift = "Nothing"
13
    if (global.last_text_move_select < 1)
14
        global.last_text_move_select += 1
15
    global.determine_attack_priority = 1
16
    script_execute(gml_Script_scr_determine_enemy_attack_yellow)
17
    if (global.important_cutscene == false)
18
    {
19
        with (obj_heart_battle_menu)
20
            event_user(0)
21
    }
22
    instance_destroy()
23
}