Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mansion_kanako_books_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
        sndfnt_array[0] = 391
9
        message[0] = "* (Books of a novice#  reading level lie in the#  basket.)"
10
        message[1] = "* (They carry#  similarities to books#  you've recently read.)"
11
        if (other.npc_flag == 0 && global.party_member != -4)
12
        {
13
            sndfnt_array[2] = 102
14
            message[2] = "* Aww, I remember reading#  those as a birdling."
15
            message[3] = "* Not to brag, but I#  finished them all in one#  day.    "
16
            message[4] = "* I may have exceeded my#  classmates by several#  grades..."
17
            prt[2] = 312
18
            prt[3] = 331
19
            prt[4] = 331
20
        }
21
    }
22
    npc_flag = 1
23
}