summaryrefslogtreecommitdiff
path: root/npc/functions/asleep.txt
blob: 7443e90441f0ca021b6a992cc6192e28cb9ccb3e (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... Shhhh...");
    else emotion E_SLEEPY; // Sleepy

    close;
}