Inform Syntax: 1, Me: Several.

May 03, 2006 03:57

So, I'm writing this text adventure test gamelet (which is just a bunch of room and item descriptions) so I can play with Inform 7. I made it so that if you close the door, the room becomes dark. However, in the dark, you can't see the door to open it again! Why should you need to see it to open it?! I've tried mangling the scope. I've tried ( Read more... )

lazyweb, iff, games, programming

Leave a comment

Comments 17

blue_condition May 3 2006, 12:12:08 UTC
If I was doing it I'd probably keep a list of objects that you have seen before - when you go into the room you "have seen" everything in there... would that work?

Reply

angharad May 3 2006, 23:51:19 UTC
I dunno. I can try that later. The problem is that right now in the dark, "You can't see any such thing.".

Reply


ex_trurl May 3 2006, 14:31:34 UTC
Ah, but can the door open you? (BBBoT reference, or is that only two Bs)

Reply

iralith May 3 2006, 15:40:44 UTC
You are writing a text adventure because you are excellent. When I had my big text-adventure fling a couple of years ago, the fact that I never managed to learn Inform or TADS or whatever and write one myself is entirely down to the fact that I am not excellent. Go you.

Reply

ex_trurl May 3 2006, 15:42:33 UTC
Uh, did you mean to reply to me or the parent?

Reply

iralith May 3 2006, 15:53:30 UTC
To the parent-sorry about that.

Reply


bonelesspuppy May 3 2006, 17:04:25 UTC
If it weren't for the wacky new syntax, I could tell you how to edit the basic verb OPEN to make it no longer light-dependent (TADS classes them as darkverbs, and I think Inform has a very similar designation). I have no idea how to handle verb-overwriting in Inform 7, though, and I am afraid to delve into a world where there are no curly braces and FOR loops.

Reply

angharad May 3 2006, 23:49:24 UTC
There are for loops! It wouldn't be Turing complete without for loops (well, okay, it has while loops too, not to mention if statements)! (Nobody has any idea how to do anything in Inform 7 (except Zarf, Emily Short, and Graham Himself), so don't worry about that!) Example from the documentation:
The following lists the whereabouts of all men in lighted rooms:

repeat with suspect running through the men who are in a lighted room (called the scene) begin;
say "[The suspect] is in [the scene].";
end repeat.

Reply

bonelesspuppy May 4 2006, 00:22:10 UTC
I embrace this for loop only cautiously, as I cannot escape the sense that, when I look at sample Inform 7 code, I am reading the Usenet posts of a conspiracy theorist who starts off calm and rational but quickly descends into frothing madness.

Reply

angharad May 4 2006, 00:31:19 UTC
Nono, see, it's mad in a good, trippy way: like Haskell!

Reply


hitchhiker May 3 2006, 17:38:12 UTC
yeesh, is that the new inform syntax? looks uncomfortably verbose to me - I hope there are still algollike shorthand alternatives available.

Reply


Leave a comment

Up