From 9164ea7ec938958245e1ceb75035f90500c8a7c8 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 18 Jun 2016 00:19:39 +0200 Subject: Added mesf() command (combination of mes() and sprintf()) Signed-off-by: Haru --- doc/script_commands.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'doc') 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(""{,{, {, ...}}}) + +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 -- cgit v1.2.3-60-g2f50