diff options
author | Reid <reidyaro@gmail.com> | 2016-02-22 22:32:19 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-02-22 22:32:19 +0100 |
commit | bf0f2ae088618d1f8489554b3bfe9ff51ab92017 (patch) | |
tree | 0055db693fef1d15774867f67e99519bbfe5ac19 /npc/functions | |
parent | c03227d0899a92cac120610f5ea5dfcbe18a42c3 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/functions/main.txt | 5 |
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); |