summaryrefslogtreecommitdiff
path: root/npc/functions/hello.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/hello.txt')
-rw-r--r--npc/functions/hello.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/functions/hello.txt b/npc/functions/hello.txt
new file mode 100644
index 00000000..9399b3b5
--- /dev/null
+++ b/npc/functions/hello.txt
@@ -0,0 +1,23 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Tell a random greeting sentence.
+
+function script hello {
+
+ switch (rand(3))
+ {
+ case 0:
+ npctalkonce(l("Heya!"));
+ break;
+ case 1:
+ npctalkonce(l("Hi."));
+ break;
+ case 2:
+ npctalkonce(l("Nice day to you."));
+ break;
+ }
+
+ return;
+}