From 48ba24a1fe2b01518af44fe5b05dd2b674372d45 Mon Sep 17 00:00:00 2001 From: Reid Date: Tue, 29 Dec 2015 02:38:18 +0100 Subject: Add villagertalk function for random dialogues. --- npc/functions/villagertalk.txt | 23 +++++++++++++++++++++++ npc/scripts.conf | 1 + 2 files changed, 24 insertions(+) create mode 100644 npc/functions/villagertalk.txt 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 -- cgit v1.2.3-70-g09d2