Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_heart_initiate_battle_position_yellow

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

function scr_determine_heart_initiate_battle_position_yellow() //gml_Script_scr_determine_heart_initiate_battle_position_yellow { if live_call() return global.live_result; var battle_enemy_name = global.battle_enemy_name switch battle_enemy_name { case "flowey intro": case "martlet pacifist": case "martlet genocide": case "shufflers": point_x2 = (__view_get((0 << 0), 0)) + 160 point_y2 = (__view_get((1 << 0), 0)) + 160 break case "el bailador": point_x2 = (__view_get((0 << 0), 0)) + 160 point_y2 = (__view_get((1 << 0), 0)) + 185 break case "boulders minifight": case "steam minifight": point_x2 = (__view_get((0 << 0), 0)) + 160 point_y2 = (__view_get((1 << 0), 0)) + 130 break case "asgore": point_x2 = (__view_get((0 << 0), 0)) + 160 point_y2 = (__view_get((1 << 0), 0)) + 120 break case "energy balls minifight": point_x2 = (__view_get((0 << 0), 0)) + 160 point_y2 = (__view_get((1 << 0), 0)) + 160 break default: point_x2 = (__view_get((0 << 0), 0)) + 24 point_y2 = (__view_get((1 << 0), 0)) + 227 } }
() //gml_Script_scr_determine_heart_initiate_battle_position_yellow
2
{
3
    if live_call()
4
        return global.live_result;
5
    var battle_enemy_name = global.battle_enemy_name
6
    switch battle_enemy_name
7
    {
8
        case "flowey intro":
9
        case "martlet pacifist":
10
        case "martlet genocide":
11
        case "shufflers":
12
            point_x2 = (__view_get((0 << 0), 0)) + 160
13
            point_y2 = (__view_get((1 << 0), 0)) + 160
14
            break
15
        case "el bailador":
16
            point_x2 = (__view_get((0 << 0), 0)) + 160
17
            point_y2 = (__view_get((1 << 0), 0)) + 185
18
            break
19
        case "boulders minifight":
20
        case "steam minifight":
21
            point_x2 = (__view_get((0 << 0), 0)) + 160
22
            point_y2 = (__view_get((1 << 0), 0)) + 130
23
            break
24
        case "asgore":
25
            point_x2 = (__view_get((0 << 0), 0)) + 160
26
            point_y2 = (__view_get((1 << 0), 0)) + 120
27
            break
28
        case "energy balls minifight":
29
            point_x2 = (__view_get((0 << 0), 0)) + 160
30
            point_y2 = (__view_get((1 << 0), 0)) + 160
31
            break
32
        default:
33
            point_x2 = (__view_get((0 << 0), 0)) + 24
34
            point_y2 = (__view_get((1 << 0), 0)) + 227
35
    }
36
37
}