Jump to content
  • 0

Cancel Script?


Question

Posted

Sorry for the bad topic title.

 

anyways, what script is that when a player clicks cancel button then this script will execute?

I mean for example, if you will input a menu in the npc there will always be a cancel button. My request is that, if a player clicks that button this script will execute.

 

I hope this explains my request.

 

thank you!

3 answers to this question

Recommended Posts

Posted
mes "Hit 'Cancel' Buton";
if( prompt( "Continue","Close" ) == 2 ){
	mes "It's Closed now.";
}else{
	mes "Wew..it CONTINUED.";
}
close;

prompt

'prompt' works almost the same as select, except that when a character clicks
the Cancel button, this function will return 255 instead.
Posted

I'd also like to add prompt works really well with items scripts for example...

 

if( prompt( "Continue","Close" ) > 200 ){
	dispbottom "It's Closed now.";
	end;
} else {
	dispbottom "Wew..it CONTINUED.";
	end;
}

Would allow you to recall this script much faster than if you were to press the cancel button on a normal select menu.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...