Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_text_battle_move_selected_spare_Create_0

(view raw script w/o annotations or w/e)
1
if (global.enemy_count == 1 && global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false)
2
    sparing = true
3
else if (global.enemy_count == 2)
4
{
5
    if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false)
6
        sparing = true
7
    else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false)
8
        sparing = true
9
    else
10
        sparing = false
11
}
12
else if (global.enemy_count == 3)
13
{
14
    if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false)
15
        sparing = true
16
    else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false)
17
        sparing = true
18
    else if (global.enemy_sparing_3 == true && global.enemy_dead_3 == false && global.enemy_spared_3 == false)
19
        sparing = true
20
    else
21
        sparing = false
22
}
23
else
24
    sparing = false