summaryrefslogtreecommitdiff
path: root/npc/003-1/swezanne.txt
blob: ca0798c85aa1bee5fe94386226c03a214e838470 (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
// Author:
//    Jesusalva

003-1,70,100,0	script	Swezanne	NPC_FEMALE,{

    mesn;
    mesq l("Hi.");
    if ($MOST_HEROIC$ != "") goto L_Heroics;
    close;

L_Heroics:
    next;
    mesn;
    .@d=rand(1,6);
    // This switch loop is temporaly broken.
    switch (.@d) {
        case 1:
            .@deed$="protected our cities!";
        case 2:
            .@deed$="did great acts of bravery!";
        case 3:
            .@deed$="is just awesome!";
        case 4:
            .@deed$="killed a monster army single-handed!";
        case 5:
            .@deed$="proved their worth in battlefield!";
        case 6:
            .@deed$="impressed even the High Council!";
        default:
            .@deed$="is awesome like me!"; // Should be unreachable
    }

    mesq l("I hope to one day be like @@, who @@", $MOST_HEROIC$, .@deed$);
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    //setunitdata(.@npcId, UDT_HEADTOP, 2929);
    setunitdata(.@npcId, UDT_HEADMIDDLE, 1307);
    setunitdata(.@npcId, UDT_HEADBOTTOM, 2207);
    setunitdata(.@npcId, UDT_WEAPON, 1802); // Boots
    setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 7);

    .sex = G_FEMALE;
    .distance = 3;
    end;
}