summaryrefslogtreecommitdiff
path: root/npc/functions/goodbye.txt
blob: c02f40ec0dbb0908a5d15db54d25c206c6609dfa (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
// Evol functions.
// Author:
//    Reid
// Description:
//    Tell a random goodbye sentence.
// Variables:
//    .@rand = Random number between the number of "goodbye" choice.

function	script	goodbye_msg	{
    setarray .byemsg$[0], l("See you!"),
                          l("See you later!"),
                          l("See you soon!"),
                          l("Bye!"),
                          l("Farewell."),
                          l("Bye then!"),
                          l("Goodbye."),
                          l("Bye for now."),
                          l("Talk to you soon!"),
                          l("Talk to you later!"),
                          l("Have a good day!"),
                          l("Cheers!"),
                          l("Take care!");

    return .byemsg$[rand(getarraysize(.byemsg$))];
}

function	script	goodbye	{
    closedialog;

    npctalk3 goodbye_msg();

    close;
}