Menu

Close2

Brynner

Syntax

  • close2 ;

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 message box will disappear, but unlike
[Close] the script execution will continue. So after a close2 command an
[End] command must follow to terminate the script. If no window is currently
on screen, the RID will get stuck in the NPC.

Examples

[Mes] "[Woman]";
mes "I am finished talking to you, click the close button.";
**close2** ;
[Dispbottom] "This will be shown at the characters chat window.";
[End];



mes "Thank you for using";
mes "the Kafra Services.";
**close2** ;
[Cutin] "", 255;
end;

Probably the most common usage of this command. Removing a previously set
cutin, after the NPC dialog is closed.

[Category:Script Command]


Related

Wiki: Close
Wiki: End
Wiki: NPC
Wiki: Timers (Scripting)

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.