intfiction.org

The Interactive Fiction Community Forum
It is currently Tue May 21, 2013 6:05 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 142 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 15  Next
Author Message
PostPosted: Wed Feb 29, 2012 2:59 pm 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
matt w wrote:
thefoxaroo wrote:
I originally put these in my code to test:
Code:
When play begins:
   Try Tom taking the widget;
   Try Tom dropping the watchamacalit.
But I received this error:" Problem. You wrote 'Try Tom taking the widget' : but I can't find a verb here that I know how to deal with, so I am ignoring this sentence altogether."
This is the error that you'd get if you write "Try Tom taking the widget." without a "When play begins:" or similar rule preamble, so my guess is that you might have accidentally put a period after "when play begins."

Punctuation errors can be seriously annoying!
More likely to have been the immediately preceeding line. I have several statements set up after "When play begins" and they were working fine. Since they were working and "Try Tom taking" produced a compilation error it's what led me to assume that the command itself was incorrect. All working now. :)

Felix, found a problem with the code to conceal the tattoo; it's concealing all the body features. I added a wrist:

Code:
The Gym is a room.

A wrist is a kind of thing.  A wrist is part of every person.

Bob is a person. Bob is in the Gym.   Bob wears a shirt.

A tattoo is part of Bob. The description is "It is the symbol of the Sacred Chao."

Rule for deciding the concealed possessions of Bob while Bob is wearing the shirt: if the particular possession is the tattoo, yes.

Instead of examining Bob: if Bob is wearing the shirt, try Bob dropping the shirt; otherwise try Bob wearing the shirt.

After Bob dropping the shirt: say "Bob pulls his shirt off, revealing a curious tattoo."

After Bob wearing the shirt: say "Bob puts his shirt back on."

test me with "x tattoo / x wrist / x Bob / x tattoo / x wrist / l / x Bob "


Result:
Code:
>test me
(Testing.)

>[1] x tattoo
You can't see any such thing.

>[2] x wrist
You see nothing special about your wrist.

>[3] x bob
Bob pulls his shirt off, revealing a curious tattoo.

>[4] x tattoo
It is the symbol of the Sacred Chao.

>[5] x wrist
Which do you mean, your wrist or Bob's wrist?

>[6] l
The Void
You can see a shirt and Bob here.

>[7] x bob
(Bob first taking the shirt)
Bob puts his shirt back on.
Puzzling. The statement references the tattoo specifically, so it shouldn't be covering the wrist as well.


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 3:07 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2128
Location: Burlington, VT
Slap an "otherwise no" on the end of the rule for deciding concealed possessions and it seems to work. That doesn't seem to be the documented behavior, but I guess you always need the "otherwise no."


Top
 Profile Send private message  
 
PostPosted: Wed Feb 29, 2012 3:41 pm 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
Worked! Thanks matt w. :)

....aaaand onto my next set of challenges.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 27, 2012 12:58 am 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
I've had to suspend work on my Inform7 projects once again. On this occasion it's not a lack of time but a lack of health. I've had an inner ear infection since late March, the symptoms of which are persistent headaches and a loss of sense of balance. Even just looking at scrolling text on a screen makes me dizzy.

I'm quite annoyed at this turn of events, as it's a most unpleasant condition in any case, but also because I was making great strides with my various I7 projects, and having a lot of fun in the process.

(My GP put me on antibiotics in March, and when that didn't work onto stronger antibiotics, for which I'm still now waiting for an improvement).

I'll post again soon as I'm well enough to resume this hobby.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 27, 2012 10:04 am 
Offline

Joined: Fri Jul 16, 2010 2:09 pm
Posts: 1950
Ickaroo! Ear infections are bad news - I hope you and your doc can clear it up!


Top
 Profile Send private message  
 
PostPosted: Fri Apr 27, 2012 12:46 pm 
Offline
User avatar

Joined: Thu Nov 04, 2010 6:30 am
Posts: 985
Location: Gothenburg, Sweden
Sorry to hear that. Get well soon.
(I still look forward to that Interactive Goon Show Fan Fiction Game of yours.)

_________________
Man ska inte tro allt man tänker.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 27, 2012 5:09 pm 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
Felix wrote:
Sorry to hear that. Get well soon.
Thanks. It's rather unpleasant, and not making my life at work any easier either.
Felix wrote:
(I still look forward to that Interactive Goon Show Fan Fiction Game of yours.)
That one's going to be a good couple of years away because I'm working these projects in progressive order of difficulty, with the Goon Show's cartoon physics being a phenomenal challenge. Thanks for the encouragement though :) , and I'm jotting down ideas when they pop into my mind.

SEAGOON>ASK POLICEMAN FOR DIRECTIONS

POLICEMAN: "Take Euston Road!"

SEAGOON>TAKE EUSTON ROAD

GREENSLADE: "You find yourself before a cabbage green two-bob-a-week bedsitter built into a traffic light at the junction of Yourkinyooston. A sign on the door reads 'Enquiries - Knock here.' "

SEAGOON>INVENTORY

GREENSLAND: Mr Seagoon, you are carrying:
. The door to your private office
. Two dozen assorted sound effects
. No tea
. A picture of queen victoria, slightly singed around the edges
. A brass statue of an apology

>KNOCK ON DOOR

SOUND FX: RAP, RAP, RAP!

GREENSLADE: "The door is opened by a tall vile man wearing an elastic frown."

GRYTPTYPE-THYNNE: "I'm sorry sir, but you cannot come in here while you're holding Euston Road."

SOUND FX: Loud door slam!

SEAGOON>INVENTORY

GREENSLAND: Mr Seagoon, you are carrying:
. The door to your private office
. Two dozen assorted sound effects
. No tea
. A picture of queen victoria, slightly singed around the edges
. A brass statue of an apology
. Euston Road

SEAGOON: "Right now game-player! Take a hundred lines: 'I must NOT try to guess the end of goon show gags!!' "


Top
 Profile Send private message  
 
PostPosted: Fri Apr 27, 2012 5:20 pm 
Offline
User avatar

Joined: Thu Nov 04, 2010 6:30 am
Posts: 985
Location: Gothenburg, Sweden
:lol:

_________________
Man ska inte tro allt man tänker.


Top
 Profile Send private message  
 
PostPosted: Sat Apr 28, 2012 1:08 am 
Offline

Joined: Wed Feb 15, 2012 7:00 pm
Posts: 123
thefoxaroo wrote:
. Euston Road


This!


Top
 Profile Send private message  
 
PostPosted: Tue May 01, 2012 4:14 pm 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
Quick update: I'm booked in with a specialist on the 9th May, and hopefully then I'll learn what's causing these headaches and dizzyness, and more importantly if there's any way to *FIX* them! :(


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 142 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 15  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group