Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_dalv_determine_destination

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

function scr_dalv_determine_destination() //gml_Script_scr_dalv_determine_destination { switch global.flag[28 Spoken to Dalv in his house] { case 0: switch room { case rm_dalvshouse: destination_x_dalv = default_x_dalvshouse destination_y_dalv = default_y_dalvshouse no_loop_destination_dalv = false image_alpha = 0 direction = 180 break default: instance_destroy() } break case 1: switch room { case rm_dalvshouse: switch global.lastroom { case "rm_dalvroomhall": destination_x_dalv = default_x_dalvshouse destination_y_dalv = default_y_dalvshouse no_loop_destination_dalv = false image_alpha = 0 direction = 180 break case "rm_dalvhallway": image_alpha = 1 direction = 270 x = default_x_dalvshouse y = default_y_dalvshouse destination_x_dalv = default_x_dalvshouse destination_y_dalv = default_y_dalvshouse no_loop_destination_dalv = false break default: image_alpha = 1 direction = 270 x = 160 y = 140 destination_x_dalv = default_x_dalvshouse destination_y_dalv = default_y_dalvshouse no_loop_destination_dalv = false break } break case 39: switch global.lastroom { case "rm_dalvshouse": destination_x_dalv = default_x_dalvroomhall destination_y_dalv = default_y_dalvroomhall no_loop_destination_dalv = false image_alpha = 0 direction = 0 break case "rm_dalvsroom": break } break case 36: switch global.lastroom { case "rm_dalvshouse": break case "rm_dalvExit": break default: instance_destroy() } break case 40: switch global.lastroom { case "rm_dalvhallway": break default: instance_destroy() } break default: instance_destroy() } break default: instance_destroy() } }
() //gml_Script_scr_dalv_determine_destination
2
{
3
    switch global.flag[28 Spoken to Dalv in his house]
4
    {
5
        case 0:
6
            switch room
7
            {
8
                case rm_dalvshouse:
9
                    destination_x_dalv = default_x_dalvshouse
10
                    destination_y_dalv = default_y_dalvshouse
11
                    no_loop_destination_dalv = false
12
                    image_alpha = 0
13
                    direction = 180
14
                    break
15
                default:
16
                    instance_destroy()
17
            }
18
19
            break
20
        case 1:
21
            switch room
22
            {
23
                case rm_dalvshouse:
24
                    switch global.lastroom
25
                    {
26
                        case "rm_dalvroomhall":
27
                            destination_x_dalv = default_x_dalvshouse
28
                            destination_y_dalv = default_y_dalvshouse
29
                            no_loop_destination_dalv = false
30
                            image_alpha = 0
31
                            direction = 180
32
                            break
33
                        case "rm_dalvhallway":
34
                            image_alpha = 1
35
                            direction = 270
36
                            x = default_x_dalvshouse
37
                            y = default_y_dalvshouse
38
                            destination_x_dalv = default_x_dalvshouse
39
                            destination_y_dalv = default_y_dalvshouse
40
                            no_loop_destination_dalv = false
41
                            break
42
                        default:
43
                            image_alpha = 1
44
                            direction = 270
45
                            x = 160
46
                            y = 140
47
                            destination_x_dalv = default_x_dalvshouse
48
                            destination_y_dalv = default_y_dalvshouse
49
                            no_loop_destination_dalv = false
50
                            break
51
                    }
52
53
                    break
54
                case 39:
55
                    switch global.lastroom
56
                    {
57
                        case "rm_dalvshouse":
58
                            destination_x_dalv = default_x_dalvroomhall
59
                            destination_y_dalv = default_y_dalvroomhall
60
                            no_loop_destination_dalv = false
61
                            image_alpha = 0
62
                            direction = 0
63
                            break
64
                        case "rm_dalvsroom":
65
                            break
66
                    }
67
68
                    break
69
                case 36:
70
                    switch global.lastroom
71
                    {
72
                        case "rm_dalvshouse":
73
                            break
74
                        case "rm_dalvExit":
75
                            break
76
                        default:
77
                            instance_destroy()
78
                    }
79
80
                    break
81
                case 40:
82
                    switch global.lastroom
83
                    {
84
                        case "rm_dalvhallway":
85
                            break
86
                        default:
87
                            instance_destroy()
88
                    }
89
90
                    break
91
                default:
92
                    instance_destroy()
93
            }
94
95
            break
96
        default:
97
            instance_destroy()
98
    }
99
100
}