summaryrefslogtreecommitdiff
path: root/npc/001-1/sophialla.txt
blob: 57d838dec4b41f31bb659a983cb09e1ac09d6e44 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Evol scripts.
// Author:
//    Micksha
// Description:
//    Sophialla, the connection between Artis and the Brotherhood in Hurns.
// THIS IS A PLACEHOLDER!

001-1,73,40,0	script	Sophialla#001-1	NPC_SOPHIALLA,{
    .@q=getq(General_Brotherhood);
    if (!.@q)
    {
        speech
            l("Hello."),
            l("Can't you see I am reading? Please go, please.");
            // Please go, please? What?
        close;
    }
    speech
        l("Hello."),
        l("Can't you see I am reading? If you need something, tell me the secret password.");
    // TODO: Use a token to know password or whatever
    // PS. "Sagratha" is not a typo.
    select
        l("Sorry to disturb you."),
        rif(getq(ArtisQuests_MonaDad) == 3, l("Sagratha is great.")),
        l("I don't know the password");
    mes "";
    if (@menu == 2)
    {
        speech
            l("If you visit the sewers again... You'll find secret passages..."),
            l("Look for the hideout, but tell no one about this. Then, say the password again.");
        compareandsetq General_Brotherhood, 1, 2;
    }
    else if (@menu == 3)
    {
        mesn;
        mesq l("If I just told you, it would not be a password anymore, right?");
        next;
        mesn;
        mesq l("I'm afraid you'll need to figure that out on your own.");
        next;
        mesn;
        mesq l("This password is very secret. I don't think you would learn it even if you rescued someone missing for weeks.");
        // Extra hint (TODO: Logic is crappy)
        if (@sophiahalla_needhelp) {
            next;
            mesn;
            mesq l("Actually, there is an ex-legion member whose daughter used to play nearby... How was she called? Mona I think?");
            next;
            mesn;
            mesq l("...Ah! Nevermind, I was talking to myself.");
        }
        @sophiahalla_needhelp=true;
        next;
        mesc l("%s sighs.", .name$);
    }

    speech
        lg("If you don't know it, just go, please.");
    close;

OnLegionComplete:
    restorecam;
    mesn "???";
    mesc l("A strange voice seems to be calling out your name.");
    next;
    // NOTE: Sophialla is more than 15 tiles of distance from player
    // Server refuses to send client data about where she is and that makes
    // setcamnpc fail. This is why I set .alwaysVisible attribute to true.
    // Note: you can work around with coordinates, but she won't be drawn.
    setcamnpc "Sophialla#001-1";
    mesn;
    mesq l("Hey. ppst. I have something important to tell you.");
    next;
    mesn;
    mesq l("I just can't remember what. But come talk to me later once devs becomes less lazy.");
    setq General_Brotherhood, 1;
    next;
    restorecam;
    closeclientdialog;
    close;

OnInit:
    .sex = GENDER_MALE;
    .distance = 2;
    .alwaysVisible = true;
    end;
}