Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

too many values were given to this (prompt:) macro

edited February 2017 in Help! with 2.0
Hello all,

When I try what the manual says
Example usage:
(set: $name to (prompt: "Your name, please:", "Frances Spayne"))

I get this answer:
1 too many values were given to this (prompt:) macro.►
The (prompt:) macro must only be given a string.

Do you have an idea how to fix this ?

Twine 2.1
Harlowe 2.0

Thank you !

Comments

  • Can you check again which version of Harlowe you have selected for your story.
    eg. 2.0.0 or one of the 1.x versions.

    I tested your example using v2.0.0 and it works correctly.

    The example does not work when using any release of Harlowe 1.x because their implementation of the (prompt:) macro does not support passing a default value, and passing one will result in the error message you received.

    note: I know the current v1.2.3 (prompt:) documentation states it does support the default value parameter but unfortunately it is showing a copy of the relevant section of the v2.0.0 documentation.
  • Once again, @greyelf, you are totally right !
    I was using the bad, i mean the old, version of Harlowe.
    With Harlowe 2, no problem!
    All my best,
    David
Sign In or Register to comment.