• Y/N prompt - menu commands

    From Alpha@21:4/158 to All on Mon Oct 19 22:34:10 2020
    It doesn't look like the Y/N prompts in Mystic's menu commmands are documented on the wiki... Anyone know what the secret is? Want to use it in prelogin
    menu to skip people directly to the door menu if they select Y...

    Thanks!

    |07┌[|08..|15Alpha|08.....................|07]┐
    |07├[|08..|11The Drunken Gamer BBS|08.....|07]┤ |07└[|08..|03TheDrunkenGamer.com:8888|08..|07]┘

    --- Mystic BBS v1.12 A47 2020/09/12 (Linux/64)
    * Origin: The Drunken Gamer BBS (21:4/158)
  • From Warpslide@21:3/110 to Alpha on Mon Oct 19 21:02:47 2020
    On 19 Oct 2020, Alpha said the following...

    It doesn't look like the Y/N prompts in Mystic's menu commmands are documented on the wiki... Anyone know what the secret is? Want to use it in prelogin menu to skip people directly to the door menu if they select Y...

    I believe you use the -Y (default yes) or -N (default no) command in the menu and then you'd use the OK or !OK commands after that depending on whether
    they said yes or no:

    Action List ────────────── Access ───── Data ─────────────────────────────
    (-Y) Ask Yes/No (default Y Yes or No? (GT) Display line of text OK |CRYou said yes!|PA (GT) Display line of text !OK |CRYou said no!|PA


    http://wiki.mysticbbs.com/doku.php?id=access_control


    Jay

    ... How did the picture end up in jail? It was framed!

    --- Mystic BBS v1.12 A47 2020/10/13 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Alpha@21:4/158 to Warpslide on Tue Oct 20 01:53:33 2020
    It doesn't look like the Y/N prompts in Mystic's menu commmands are documented on the wiki... Anyone know what the secret is? Want to use in prelogin menu to skip people directly to the door menu if they sel Y...

    I believe you use the -Y (default yes) or -N (default no) command in the menu and then you'd use the OK or !OK commands after that depending on whether they said yes or no:

    Action List ────────────── Access ───── Data ───────────────────────────── (-Y) Ask Yes/No (default Y
    Yes or No? (GT) Display line of text OK |CRYou said yes!|PA (GT) Display line of text !OK |CRYou said no!|PA


    Thanks Warpslide, I'll give that a try!

    |07┌[|08..|15Alpha|08.....................|07]┐
    |07├[|08..|11The Drunken Gamer BBS|08.....|07]┤ |07└[|08..|03TheDrunkenGamer.com:8888|08..|07]┘

    --- Mystic BBS v1.12 A47 2020/09/12 (Linux/64)
    * Origin: The Drunken Gamer BBS (21:4/158)
  • From Zip@21:1/202 to Alpha on Tue Oct 20 08:24:16 2020
    Hello Alpha!

    On 19 Oct 2020, Alpha said the following...

    It doesn't look like the Y/N prompts in Mystic's menu commmands are documented on the wiki... Anyone know what the secret is? Want to use it in prelogin menu to skip people directly to the door menu if they select Y...

    First, you execute the answer reset:
    (-R) Reset OK ACS flags, Data: 0 (although I don't think Data matters)

    Then ask the question:
    (-Y) Ask Yes/No (default Yes)

    Then perform the command you want to, with the condition "OK" if you want it
    to be executed if the user answered "Y", or "!OK" if you want it to be
    executed if the user answered "N".

    If you use (-N) Ask Yes/No (default No), I believe "OK" means that the user answered "N" and "!OK" that the user answered "Y", so it's reversed.

    Hope this helps!

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/10/11 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Alpha@21:4/158 to Zip on Tue Oct 20 13:41:58 2020
    Hello Alpha!

    On 19 Oct 2020, Alpha said the following...

    It doesn't look like the Y/N prompts in Mystic's menu commmands are documented on the wiki... Anyone know what the secret is? Want to use in prelogin menu to skip people directly to the door menu if they sel Y...

    First, you execute the answer reset:
    (-R) Reset OK ACS flags, Data: 0 (although I don't think Data matters)

    Then ask the question:
    (-Y) Ask Yes/No (default Yes)

    Then perform the command you want to, with the condition "OK" if you
    want it to be executed if the user answered "Y", or "!OK" if you want it to be executed if the user answered "N".

    If you use (-N) Ask Yes/No (default No), I believe "OK" means that the user answered "N" and "!OK" that the user answered "Y", so it's reversed.

    Hope this helps!

    Yes, it did! I was able to get my prompt up and running. Many thanks...

    |07┌[|08..|15Alpha|08.....................|07]┐
    |07├[|08..|11The Drunken Gamer BBS|08.....|07]┤ |07└[|08..|03TheDrunkenGamer.com:8888|08..|07]┘

    --- Mystic BBS v1.12 A47 2020/09/12 (Linux/64)
    * Origin: The Drunken Gamer BBS (21:4/158)
  • From Zip@21:1/202 to Alpha on Wed Oct 21 16:49:33 2020
    Hello Alpha!

    On 20 Oct 2020, Alpha said the following...
    If you use (-N) Ask Yes/No (default No), I believe "OK" means that th user answered "N" and "!OK" that the user answered "Y", so it's rever

    Hope this helps!

    Yes, it did! I was able to get my prompt up and running. Many thanks...

    You're very welcome!

    I remember digging a lot among all the menus (and some readme files, or was
    it changelogs/release notes?) before I found out how to use it. :)

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/10/11 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)