summaryrefslogblamecommitdiff
path: root/npc/functions/asleep.txt
blob: 4905f329ba66dfc177e79d031c76d4f39b2cb87d (plain) (tree)
1
2
3
4
5
6
7
8
9






                                   
                                                                     
 
                                 
                
 
                     
                                                

                                                           
                                                       
                          
 
          
 
// 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;

    close;
}