Hey y'all, I have a question about Text Box codes in Mystic...
In the wiki a text box can be generated like this,
#B#1#12#This is a header#This is a test notification box!#
(with a pipe at the start)
This will make a popup box with a header and some text and an ok button.
How can I make one with a yes/no prompt and use that in a menu so that if used for a menu item, the box pops up first and if user chooses yes the menu continues to the desired item, and if no is chosen takes the user back to the main menu?
Check the full display_codes.txt file included with mystic when you install. =D it shows all the new codes including the one you are asking about.
How can I make one with a yes/no prompt and use that in a menu so that if used for a menu item, the box pops up first and if user chooses yes the menu continues to the desired item, and if no is chosen takes the user back to the main menu?
Cmd: -Y
Data: Did you have a good day today?
Cmd: GT
Data: Thats great!
ACS: OK
Cmd: GT
Data: I'm sorry to hear that
ACS: !OK
How can I make one with a yes/no prompt and use that in a menu so tha used for a menu item, the box pops up first and if user chooses yes t menu continues to the desired item, and if no is chosen takes the use back to the main menu?
Look for the -Y and -N menu command and then I believe you can put the
MCI sequence for a Yes/No box in there. Mystic uses the "OK" ACS to do menu branching when executing chained menu commands so you can do stuff like this:
Command List:
Cmd: -Y
Data: Did you have a good day today?
Cmd: GT
Data: Thats great!
ACS: OK
Cmd: GT
Data: I'm sorry to hear that
ACS: !OK
I would start by getting the menu to work how you want it with just the basic Yes/No question and then we can make it into a pop up box from there.
Hey g00r00,
I tried doing what you suggested below, which seemed to always give me
the "Thats great!" answer, obviously as the previous item was -Y to default to yes, which I understand...
Cmd: -Y
Data: Did you have a good day today?
Cmd: GT
Data: Thats great!
ACS: OK
Cmd: GT
Data: I'm sorry to hear that
ACS: !OK
Changing the -Y to this...
Cmd: GT
Data: !#Y#2#10# hEAdEr #Body text#
and then the next two as you made above, will always give me the next item, in this case "Thats great!" whether I choose Yes or No in the
popup yes/no item.
Am I missing something here?
Use this to reset the ACS:
-R Reset OK ACS flags
Then do it. =D
I tried doing what you suggested below, which seemed to always give me
the "Thats great!" answer, obviously as the previous item was -Y to default to yes, which I understand...
This is a pretty cool menu option, tho I've never tried it. I have
visions of creating a simple mud using a whole menu tree based on this option.
Use this to reset the ACS:
-R Reset OK ACS flags
If you can't get it to work show us the menu. I promise it works. :)
I made a menu for you and tested it, so it works just fine. Its in the prealpha folder on the website as "testyesno.mnu" so download that and
see what you're doing different than that.
This is a pretty cool menu option, tho I've never tried it. I have
visions of creating a simple mud using a whole menu tree based on this option.
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 14:29:54 |
Calls: | 14,143 |
Files: | 295 |
Messages: | 551,305 |