From bf0f2ae088618d1f8489554b3bfe9ff51ab92017 Mon Sep 17 00:00:00 2001 From: Reid Date: Mon, 22 Feb 2016 22:32:19 +0100 Subject: Add a new flag for the speech() function to hide the mesn; line. --- npc/functions/main.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc/functions/main.txt') 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); -- cgit v1.2.3-60-g2f50