summaryrefslogtreecommitdiff
path: root/npc/functions/openbook.txt
blob: 9153900e2fa68956bfc3b9189d081b8d648e9b6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Evol functions.
// Author:
//    Reid
// Description:
//    Narrator dialogue to show the selected book.
// Variables:
//    @book_name$ = The name of the book to read.

function	script	openbook	{
    .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\"";

    narrator 4,
        l("You open a book named @@.", .@book_name$);

    narrator 8,
        l("Do you want to read it?");

    return (select ("Yes.", "No.") == 1);
}

function	script	openbookshelf	{
    .@book_name$ = "\"" + l(getarg(0, getvariableofnpc(.book_name$, strnpcinfo(0)))) + "\"";

    narrator 4,
        l("You see a dust covered book on the shelf..."),
        l("The name of the book is @@.", .@book_name$);

    narrator 8,
        l("Do you want to read it?");

    return (select ("Yes.", "No.") == 1);
}

function	script	openoldbook	{
    narrator 4,
        l("You open the book, but it looks like the sea water and time damaged it severely. Some pages are not readable anymore. Some others are simply missing."),
        l("The old book seems to tell about the legend of Aemil. Would you like to read it?");

    return (select ("Yes.", "No.") == 1);
}