diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-05 08:20:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-05 08:20:13 -0300 |
commit | 62ef77683cd977feea5600cb690cd971655a202c (patch) | |
tree | 97ce627d201441220e6d95894a7a39fec57cb47f /npc/functions/main.txt | |
parent | 407522caf1a7486e73fa8aabf75e9f48c9606b9b (diff) | |
download | serverdata-62ef77683cd977feea5600cb690cd971655a202c.tar.gz serverdata-62ef77683cd977feea5600cb690cd971655a202c.tar.bz2 serverdata-62ef77683cd977feea5600cb690cd971655a202c.tar.xz serverdata-62ef77683cd977feea5600cb690cd971655a202c.zip |
New function: tutmes()
Deprecate the crazy way we were doing before.
Reason: I want to standardize a new color for tutorial speech.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 5df1999d2..808820aef 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -108,6 +108,24 @@ function script get_race { return l($@allraces$[.@g]); } +// tutmes (message, {header=Tutorial, headerfirst=True}) +function script tutmes { + .@header$=getarg(1, l("TUTORIAL")); + .@showheader=getarg(2, true); + .@tcol=9; // Tutorial color code + + if (TUTORIAL) { + dnext; + if (.@showheader) { + mesf(".:: %s ::.", .@header$); + mesc getarg(0), .@tcol; + } else { + mesc .@header$+": "+getarg(0), .@tcol; + } + } + return; +} + // Function to show narrator text. Accepts string args. // If first arg is a number N, then it represents bit flags. // Bit flags : |