Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_npc_hotland_spider_worker_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited()
2
if interact
3
{
4
    scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
5
    is_talking = 1
6
    with (msg)
7
    {
8
        switch other.npc_flag
9
        {
10
            case 0:
11
                message[0] = "* Eh eh eh, no can do."
12
                message[1] = "* Citizens aren't allowed past#  this point."
13
                message[2] = "* We're currently under heavy#  spider construction as you can#  see."
14
                message[3] = "* Ain't set to finish until 20XX#  or so."
15
                other.npc_flag++
16
                break
17
            case 1:
18
                message[0] = "* You think building a spider#  home is simple?"
19
                message[1] = "* Spin a web here, spin a web#  there, voila, right?"
20
                message[2] = "* Wrong."
21
                message[3] = "* It takes muscle. Eight biceps#  on every worker."
22
                message[4] = "* Of course, biceps aren't#  typically part of the leg but#  my team operates above rules."
23
                other.npc_flag++
24
                break
25
            case 2:
26
                message[0] = "* Gonna need you to move along.#  Your presence is intimidating#  everyone here."
27
                break
28
        }
29
30
    }
31
}