diff options
author | Haru <haru@dotalux.com> | 2016-06-18 00:19:39 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-06-25 17:29:50 +0200 |
commit | 9164ea7ec938958245e1ceb75035f90500c8a7c8 (patch) | |
tree | ca80feaddfdcd859163e3977d4569d32a46feda1 /doc/script_commands.txt | |
parent | 17f4709adeb4d9159359d901b1743de56348e7e4 (diff) | |
download | hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.gz hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.bz2 hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.tar.xz hercules-9164ea7ec938958245e1ceb75035f90500c8a7c8.zip |
Added mesf() command (combination of mes() and sprintf())
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index fea7b3c3b..f0758de71 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1235,6 +1235,23 @@ Clicking Google will open the browser and point to Google website. --------------------------------------- +*mesf("<format>"{,<param>{, <param>{, ...}}}) + +This command will display a box on the screen for the invoking character, +if no such box is displayed already, and will print the string specified +into that box, after applying the same format-string replacements as sprintf(). + +Example: + + mesf("Hello, I'm %s, a level %d %s", strcharinfo(PC_NAME), BaseLevel, jobname(Class)); + // is equivalent to: + mes(sprintf("Hello, I'm %s, a level %d %s", strcharinfo(PC_NAME), BaseLevel, jobname(Class))); + +This command is a combination of mes() and sprintf(). See their documentation +for more details. + +--------------------------------------- + *next; This command will display a 'next' button in the message window for the |