diff options
author | Reid <reidyaro@gmail.com> | 2015-12-29 02:38:18 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-12-29 02:38:18 +0100 |
commit | 48ba24a1fe2b01518af44fe5b05dd2b674372d45 (patch) | |
tree | 8d422ba2d23ed6528889b531a63c5774666841e1 | |
parent | e979c679f2ce5a3bb7b5c2afb17dd97b77681baa (diff) | |
download | serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.gz serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.bz2 serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.tar.xz serverdata-48ba24a1fe2b01518af44fe5b05dd2b674372d45.zip |
Add villagertalk function for random dialogues.
-rw-r--r-- | npc/functions/villagertalk.txt | 23 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
2 files changed, 24 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; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index b7dbd7fe..444e1967 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -21,6 +21,7 @@ npc: npc/functions/sailordialogue.txt npc: npc/functions/sailortalk.txt npc: npc/functions/savepoint.txt npc: npc/functions/shops.txt +npc: npc/functions/villagertalk.txt npc: npc/functions/npcmovegraph.txt npc: npc/functions/fishing.txt |