Difference between revisions of "Close"

From Hercules Wiki
Jump to: navigation, search
(Created page with "==Syntax== *'''close'''; ==Description== This command will create a 'close' button in the message window for the invoking character. This is one of the ways to end a speech f...")
 
m (Minor formatting update.)
 
Line 8: Line 8:
 
  [[mes]] "[Woman]";
 
  [[mes]] "[Woman]";
 
  mes "I am finished talking to you, click the close button";
 
  mes "I am finished talking to you, click the close button";
  close;
+
  '''close''';
 
  mes "This command will not run at all, cause the script has ended.";
 
  mes "This command will not run at all, cause the script has ended.";
  
 
[[Category:Script Command]]
 
[[Category:Script Command]]

Latest revision as of 16:59, 6 November 2013

Syntax

  • close;

Description

This command will create a 'close' button in the message window for the invoking character. This is one of the ways to end a speech from an NPC. Once the button is clicked, the NPC script execution will end, and the message box will disappear. If no window is currently on screen, the script ends right away.

Examples

mes "[Woman]";
mes "I am finished talking to you, click the close button";
close;
mes "This command will not run at all, cause the script has ended.";