schan 8 Posted February 9, 2014 Hi, How to use ' prompt ' ? http://herc.ws/wiki/Menus I tried doing this: prompt ("Yes:No");case 1:mes "Yes";case 2:mes "No";if (@menu == 255) { mes "You should not have closed the menu... BAD BOY!"; close; } like in switch(select()) but it didn't work. Just give me an example on how to use this. Thank you! Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted February 9, 2014 ex: switch(prompt ("Yes:No")) {case 1: mes "Yes"; close;case 2: mes "No"; close;case 255: mes "You should not have closed the menu... BAD BOY!" close;} Quote Share this post Link to post Share on other sites
0 pan 87 Posted February 9, 2014 "'prompt' works almost the same as select, except that when a character clicks the Cancel button, this function will return 255 instead." You should use it with a switch as well, something like: switch(prompt("yes:no")){ Quote Share this post Link to post Share on other sites
0 schan 8 Posted February 9, 2014 Thank you guys! Quote Share this post Link to post Share on other sites
Hi,
How to use ' prompt ' ?
http://herc.ws/wiki/Menus
I tried doing this:
like in switch(select()) but it didn't work.
Just give me an example on how to use this.
Thank you!
Share this post
Link to post
Share on other sites