From 5e97cdc447504c45adb69466b3258b3b5f65af71 Mon Sep 17 00:00:00 2001 From: Akko Teru Date: Thu, 14 Jan 2016 21:00:21 -0600 Subject: TestMe: npc/functions/villagertalk.txt Warning: There must be at least 0+13 emotes available for this not to cause problems. --- npc/functions/villagertalk.txt | 51 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/npc/functions/villagertalk.txt b/npc/functions/villagertalk.txt index a37bf9b5..1df55c97 100644 --- a/npc/functions/villagertalk.txt +++ b/npc/functions/villagertalk.txt @@ -2,15 +2,35 @@ // Authors: // Reid // Qwerty Dragon +// Contributors: +// Akko Teru // Description: -// Tell a random sentence. +// Tell a random sentence. || There ought to be a law! // Variables: // .@rand = Random number between the number of sentence choice. +// .@darn = Separatly chosen value for silly antics. function script villagertalk { - .@rand = rand(3); - if (.@rand == 0) goodbye; + .@rand = rand(5); + .@darn = rand(42); + if (.@rand == 0) + { + if (rand(2) == 1) + { + wait 1; + emote 6; // "Angel". + goodbye; + } + else + { + wait 1; + emote 13; // "Blah". + goodbye; + } + if (.@darn == 23) npctalk3 l("Stop it!"); + } + if (.@rand == 1) { speech 4, @@ -18,7 +38,30 @@ function script villagertalk { 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?"); + + if (.@rand == 2) + npctalk3 l("It is a sunny day, don't you think?"); + + if (.@rand == 3) + npctalk3 l("Go fly a kite."); + + if (.@rand == 4) + { + npctalk3 l("It's difficult to distinguish good villagers from bad ones; keep your guard up, and stay away from me."); + wait 1; + emote 6; + } + + if ((.@rand == 4) && (.@darn == 2)) + { + npctalk3 l("I just want to live my life in peace."); + } + else if (((.@rand + .@darn) - 2) == 9) + { + zeny rand(10); + emote rand(13); + goodbye; + } return; } -- cgit v1.2.3-70-g09d2