Announcement

Collapse
No announcement yet.

creating text adventures - code heavy?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    I've had a bit more of a play with it now. I like it a lot, but I think the main problem is that because the syntax is so flexible, when it doesn't understand you it can't really give you particularly useful error messages. It makes it quite hard to learn by trial and error.

    An expanded version of my example from a few posts back. Now with puzzles and some frogs:

    Source code.

    And the resulting game, which you can play in a browser.

    It doesn't make a great deal of sense. I was really just seeing how easy it is to start implementing basic puzzles.

    Comment


      #17
      lol, nice work. do you know how to stop it saying (in which is)? I wa having trouble last night trying to make a wooden cabinet containing a book with a paperclip inside. I couldn't get it to match a description to the book.

      Comment


        #18
        From memory, something to do with the opaque/transparent attributes? I dunno how the new syntax works though.

        Comment


          #19
          Originally posted by noobish hat View Post
          lol, nice work. do you know how to stop it saying (in which is)? I wa having trouble last night trying to make a wooden cabinet containing a book with a paperclip inside. I couldn't get it to match a description to the book.
          I was playing around with containers last night. Is something like this what you're after?

          In the shop is a wooden cabinet with description "An old wooden cabinet.". Inside the cabinet is a book. The cabinet is openable. It is closed. It is fixed in place.

          The book has description "An old book.". Inside the book is a paperclip. The book is openable. It is closed.

          Comment


            #20
            That's it. Will have another crack at it this weekend I think. It seems very complicated despite the colloquial code (or perhaps because of it) but I think it is doable if you read the whole manual thing and practice with it a bit.

            Comment


              #21
              How do you stop it listing everything all the time? I write a description for a room, then put stuff in it. When I test the game it gives the description and then says 'you can see..' and lists everything in the room! it's ass!

              Comment

              Working...
              X