summaryrefslogtreecommitdiff
path: root/npc/functions/asleep.txt
blob: e67dc21d8aa897efa8b9623de9b285539dc138eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Evol functions.
// Authors:
//    Alige
//    Reid
// Description:
//    Tell a random sleeping sound.
// Variables:
//    .@rand = Random number between the number of "sleeping" choice.

function	script	asleep	{
    closedialog;

    .@rand = rand(5);
    if (.@rand == 0) npctalk3 l("Zzzzzzzzz...");
    else if (.@rand == 1) npctalk3 l("Rrrr... Pchhhh...");
    else if (.@rand == 2) npctalk3 l("Ggrmm... Grmmmm...");
    else if (.@rand == 3) npctalk3 l("Hm...");
    else emotion 106; // Sleepy

    close;
}