summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-02-22 22:32:19 +0100
committerReid <reidyaro@gmail.com>2016-02-22 22:32:19 +0100
commitbf0f2ae088618d1f8489554b3bfe9ff51ab92017 (patch)
tree0055db693fef1d15774867f67e99519bbfe5ac19 /npc/functions/main.txt
parentc03227d0899a92cac120610f5ea5dfcbe18a42c3 (diff)
downloadserverdata-bf0f2ae088618d1f8489554b3bfe9ff51ab92017.tar.gz
serverdata-bf0f2ae088618d1f8489554b3bfe9ff51ab92017.tar.bz2
serverdata-bf0f2ae088618d1f8489554b3bfe9ff51ab92017.tar.xz
serverdata-bf0f2ae088618d1f8489554b3bfe9ff51ab92017.zip
Add a new flag for the speech() function to hide the mesn; line.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 3303658c..0c55caa2 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -118,6 +118,7 @@ function script narrator {
// 0x1 -- blank line at beginning
// 0x2 -- blank line at the end
// 0x4 -- use last "next;"
+// 0x8 -- don't use first "mesn;"
function script speech {
.@start = 0;
.@argc = getargcount();
@@ -132,7 +133,9 @@ function script speech {
if (.@flags & 0x1)
mes "";
- mesn;
+ if (!(.@flags & 0x8))
+ mesn;
+
for (.@i = .@start; .@i < .@argc; .@i++)
{
mesq getarg(.@i);