From 0c6df6d490c4f0cfa027d5fe1a9998294b35bcb3 Mon Sep 17 00:00:00 2001 From: Reid Yaro Date: Wed, 10 Jul 2013 08:58:17 +0100 Subject: Add forgotten goodbye function. --- npc/functions/goodbye.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 npc/functions/goodbye.txt (limited to 'npc') diff --git a/npc/functions/goodbye.txt b/npc/functions/goodbye.txt new file mode 100644 index 00000000..e5895422 --- /dev/null +++ b/npc/functions/goodbye.txt @@ -0,0 +1,18 @@ +// Evol functions. +// Author: +// Reid +// Description: +// Tell a random goodbye. +// Variables: +// @rand = Random number between the number of "good bye" choice. + +function script GoodBye { + closedialog; + + set @rand, rand(2); + if (@rand == 0) npctalk3 l("See you later!"); + if (@rand == 1) npctalk3 l("See you!"); + if (@rand == 2) npctalk3 l("Bye!"); + + close; +} -- cgit v1.2.3-70-g09d2