Howdy, Stranger!

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

datamap problem

I am running Twine 2.0.11 of Linux Mint and I have a problem.

I am following a video tutorial, by Dan Cox and I get an error message "You can't get data values from the number 0" when retrieving info from the datamap.

The variables are $weapons, $rooms and $suspects and is coded as such:

{
(set: $weapons to (datamap: "Candlestick", true, "Knife", false, "Leadpipe", false, "Revolver", false, "Rope", false, "Wrench", false))

(set: $rooms to (datamap: "Ballroom", true, "Kitchen", false, "Conservatory", false, "Dining Room", false, "Cellar", false, "Hall", false, "Lounge", false, "Study", false))

(set: $suspects to (datamap: "MissScarlett", true, "ProfessorPlum", false, "MrsPeacock", false, "MrGreen", false, "ColonelMustard", false, "MrsWhite", false))
}

This is the first time I have tried something this complicated. Can someone tell me if the problem is either me or Twine?

Many thanks

J

Comments

  • Are you using Harlowe? That code is for Harlowe.
  • I have no idea. How can I find out? Sorry. I haven't used Twine much. Still learning.

    J
  • johnno56 wrote: »
    I have no idea. How can I find out? Sorry. I haven't used Twine much. Still learning.

    J

    Essentially Harlowe is usually the 'default' Story Format when you start TWINE for the first time. So if you haven't used it much or messed with changing Story Format, then chances are, you are using Harlowe's format.
  • Cool... Nothing was added to Twine since it's installation...

    The code that was used, is it ok?

    I will attempt to attach the "Proofing Copy".

    I am hoping that the problem is my inexperience. I should have pointed out that I am running the Linux 64 bit version of 2.0.11

    J
  • You'll have to ask someone else about the Linux64 OS. I only run Win10/8.1 But the code you did provide does look accurate from what I do know about Harlowe's syntax
  • Ok. Many thanks for the assist. Much appreciated.

    J
Sign In or Register to comment.