summaryrefslogtreecommitdiff
path: root/npc/functions/villagertalk.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2015-12-29 02:38:18 +0100
committerReid <reidyaro@gmail.com>2015-12-29 02:38:18 +0100
commit48ba24a1fe2b01518af44fe5b05dd2b674372d45 (patch)
tree8d422ba2d23ed6528889b531a63c5774666841e1 /npc/functions/villagertalk.txt
parente979c679f2ce5a3bb7b5c2afb17dd97b77681baa (diff)
downloadserverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.gz
serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.bz2
serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.xz
serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.zip
Add villagertalk function for random dialogues.
Diffstat (limited to 'npc/functions/villagertalk.txt')
-rw-r--r--npc/functions/villagertalk.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/functions/villagertalk.txt b/npc/functions/villagertalk.txt
new file mode 100644
index 00000000..354842b5
--- /dev/null
+++ b/npc/functions/villagertalk.txt
@@ -0,0 +1,23 @@
+// Evol functions.
+// Author:
+// Reid
+// Description:
+// Tell a random sentence.
+// Variables:
+// .@rand = Random number between the number of sentence choice.
+
+function script villagertalk {
+
+ .@rand = rand(3);
+ if (.@rand == 0) goodbye;
+ if (.@rand == 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.");
+ }
+ if (.@rand == 2) npctalk3 l("It is a sunny day, don't you think?");
+
+ return;
+}