summaryrefslogblamecommitdiff
path: root/npc/functions/villagertalk.txt
blob: 0627b5e770d7d96681d455b4e0dad9487981d659 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                  
           
          
                   
               
               
                                                         


                                         
                          
     

                          
                        
         
                               
                  
         
                             
         
                                     

                    



                                   

               
     

                    
     


























                                                                                                                                               
     


           
// Evol functions.
// Authors:
//    Reid
//    Qwerty Dragon
//    Akko Teru
// Description:
//    Tell a random sentence. || There ought to be a law!

function	script	villagertalk	{

    function darn_or_smile
    {
        .@darn = rand(42);

        if (.@darn < 26)
        {
            emotion 103; // ^.^
            hello;
        }
        else if (.@darn > 26)
        {
            emotion 111; // Look away
            goodbye;
        }
        else
        {
            npctalk3 l("Stop it!");
        }

        return;
    }

    switch (rand(4))
    {
        case 0:
            debugmes "0";
            darn_or_smile();
            break;
        case 1:
            debugmes "1";
            speech 4,
                l("Do you feel too weak even to do damage to this areas wishy-washy wildlife?"),
                l("Then concentrate your anger upon the trees hereabouts, you will gain experience whilst leveling your sword skill on them."),
                l("Oh, and a fruit may even fall for you if you are lucky! But stay alert to pick up your drops.");
            break;
        case 2:
            debugmes "2";
            npctalk3 l("It is a sunny day, don't you think?");
            break;
        case 3:
            debugmes "3";
            npctalk3 l("Go fly a kite.");
            break;
        case 4:
            debugmes "4";
            npctalk3 l("I just want to live my life in peace.");
            break;
        default:
            debugmes "def";
            emotion 3;
            break;
    }

    return;
}