intfiction.org

The Interactive Fiction Community Forum
It is currently Wed Jun 19, 2013 11:11 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 142 posts ]  Go to page 1, 2, 3, 4, 5 ... 15  Next
Author Message
PostPosted: Thu Apr 07, 2011 7:50 am 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
Foxaroo project #1 - TARDIS Adrift

(Sounds like TADS Adrift, doesn't it? :lol: Pure co-incidence I assure you)

Hi all, I'm back from Canada and very keen to make progress on my 1st Inform 7 project, from which I hope to learn enough to then progress onto more sophisticated projects. My progress to date has been impossibly slow, I cite lack of time and lack of talent so I'm throwing myself at your mercy, or else this will never materialise (pun intended).

I've chosen the classic Doctor Who series for the theme.

The premise I've devised for my first project is that the player takes the role of a young time lord/lady not long out of the Gallifreyan Academy whose TARDIS suffers an in-flight disaster and makes planetfall in a completely inoperative state. The player is tasked with scavenging the components to restore his/her TARDIS to nominal function (Similar to Infocom's The Hitchhiker's Guide to the Galaxy by Douglas Adams where the player as Arthur Dent scavenges for various tools). This will not only involve searching, but also identifying ways to move the TARDIS by external means until the point where the player has re-enabled flight functionality. For example, the player departs their starting planet by scooping up the TARDIS with a sandminer and loading it onto a modified maglev track to propel it up to escape velocity.

I chose this theme for flexibility; no requirement for a linear narrative, and the structure of locations and puzzles can be moved around if needed. Interactive characters in the game will initially be very basic (a non-talking robot from the sandminer) until I learn how to establish rules for more sophisticated interactive characters. The player also has 12 "lives" in the form of regenerations, although there will be some hazards that do not allow regeneration, such as drifting off into space.

Now the first difficulty confronting me is one I've already asked about: the early puzzle requiring the player to break open the fire extinguisher cabinet. The player needs to use the sonic screwdriver to either cut (preferred) or bludgeon (alternative) the glass plate. The purpose of the puzzle is to ensure that the player has located the sonic screwdriver before he/she can exit the TARDIS, since the object will be indispensable throughout much of the game.

Matt W devised a code that enables the player to accomplish the breaking of the glass by the player

Code:
Instead of attacking the case glass:
   say "Crash!";
   now the case glass is shattered;
   now the small metal case is open.

However I need to refine the command so that only the below can be accepted.

CUT GLASS WITH {SONIC} SCREWDRIVER

BREAK GLASS WITH {SONIC} SCREWDRIVER

SMASH GLASS WITH {SONIC} SCREWDRIVER


(Rule fails without visible possession of the sonic screwdriver, and if attempted in an unlit room)

The problem being that Inform7 already has "break" in the group of synonyms for attack, including (but not limited to) "smash", "hit", "fight", "torture", "wreck", "crack", "destroy", "murder", "kill", "punch" and "thump." While I was searching the manual, I stumbled upon a paragraph somewhere that spoke of the need to tell Inform to forget or unlearn a verb so that it is no longer a synonym of something else. That sounds like what I need to do, but I neglected to bookmark the place where I read the syntax. :cry:


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 8:58 am 
Offline
User avatar

Joined: Wed Feb 03, 2010 4:25 pm
Posts: 265
Location: Sweden
thefoxaroo wrote:
Foxaroo project #1 - TARDIS Adrift

(Sounds like TADS Adrift, doesn't it? :lol: Pure co-incidence I assure you)

Yes, that's how I read it at first, and was surprised to find it an Inform post. :) (Btw, there's a special section of the forum for Inform.)

Regarding your actual question, I'm not qualified to answer that (I've not yet done anything in Inform 7, except reading posts here), but the phrase "Understand … as something new" comes to mind. I don't know if that's right, but someone else with better knowledge will no doubt post soon.

_________________
"The thing I like about deadlines is the wonderful whooshing noise they make as they go past."
- Douglas Adams


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 10:53 am 
Offline

Joined: Sun Mar 01, 2009 8:02 pm
Posts: 904
You don't need to remove the grammar for "break glass". What you need to do is define a new action called attacking it with. Here's a working example:
Code:
The Test Lab is a room.

The window is fixed in place in the Lab. The window can be broken. The window is not broken. The printed name of the window is "[if broken]broken [end if]window".

Instead of attacking the window:
   say "With your bare hands?"

The hammer is in the Lab.

Attacking it with is an action applying to two visible things and requiring light. Understand "attack [something] with [something]", "break [something] with [something]", "smash [something] with [something]" as attacking it with.

Check attacking it with:
   say "That's not a useful action."
   
Instead of attacking the window with the hammer:
   if the player does not carry the hammer:
      try silently taking the hammer;
      if the player carries the hammer:
         say "(first picking up the hammer)[line break]";
   if the player carries the hammer:
      say "Crash!";
      now the window is broken.
      
Test me with "break window / break window with hammer / look".

Naturally, you'll need to refine this further.

A point you may want to ponder is this: Doctor Who is subject to copyright law. You can certainly write a game using Doctor Who -- nobody is going to come into your house and erase the files from your computer. But you won't be able to upload the game to the Interactive Fiction Archive, which means that players will have a hard time finding it.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 12:31 pm 
Offline

Joined: Tue Mar 22, 2011 7:53 am
Posts: 158
Jim Aikin wrote:
A point you may want to ponder is this: Doctor Who is subject to copyright law. You can certainly write a game using Doctor Who -- nobody is going to come into your house and erase the files from your computer. But you won't be able to upload the game to the Interactive Fiction Archive, which means that players will have a hard time finding it.


Total aside here but there's tons of fanfic out there for Dr. Who and no one has had any trouble. Some franchises do give you trouble (Star Trek being one). But the Dr. Who fan fiction has been going strong for quite some time. The owners of the Dr. Who copyright have pretty much stuck to the idea that as long as you (1) aren't claiming the intellectual property as your own and (2) you're not making money from it, then you're fine. Whether the Interactive Fiction Archive will or won't upload it, I suppose, is a different issue. But it would be pretty silly to exclude it since, again, Dr. Who fan fiction of various types has been out there for a very long time with the explicit okay from the owners of the copyright with the above stated caveats. I also don't think the owners would treat interactive fiction as too much different from the written fanfic.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 3:59 pm 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
This is just going to be a student project. Profit isn't on my mind for this piece, and I probably wont be uploading it anyway unless asked to.

Jim Aikin wrote:
You don't need to remove the grammar for "break glass". What you need to do is define a new action called attacking it with.
That's what was suggested before, but I don't want the commands for "Break" and "Attack" to be interchangeable. If at a later stage in the design I want the player to "Attack Dalek with rocket launcher" I don't want the player becoming confused by finding that they can successfully enter "Break Dalek with rocket launcher."

Trumgottist wrote:
the phrase "Understand … as something new" comes to mind. I don't know if that's right, but someone else with better knowledge will no doubt post soon.
That may well have been what I was reading earlier. I'll take another look through the chapters on new rules.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 5:11 pm 
Offline

Joined: Sat Apr 02, 2011 9:19 am
Posts: 85
I'd try something like this:

Code:
Understand the command "break" as something new.

Breaking it with is an action applying to two things.
Understand "break [thing] with [thing]" as breaking it with.
Understand "cut [thing] with [thing]" as breaking it with.
Understand "smash [thing] with [thing]" as breaking it with.

Carry out breaking it with:  [default messages for using the wrong combinations of things]
   if the second noun is not the sonic screwdriver, say "You need to use [the sonic screwdriver] to break stuff.";
   else say "[The sonic screwdriver] fails to penetrate [the noun]."

Instead of breaking the glass with the sonic screwdriver:
   if in darkness:
      say "You can't see what you're doing.";
      stop the action;
   if the case glass is shattered:
      say "That's already broken.";
      stop the action;
   say "Crash!";
   now the case glass is shattered;
   now the small metal case is open.


That should give you break/cut/smash and leave "attack" unaffected.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 07, 2011 7:43 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2138
Location: Burlington, VT
thefoxaroo wrote:
Jim Aikin wrote:
You don't need to remove the grammar for "break glass". What you need to do is define a new action called attacking it with.
That's what was suggested before, but I don't want the commands for "Break" and "Attack" to be interchangeable. If at a later stage in the design I want the player to "Attack Dalek with rocket launcher" I don't want the player becoming confused by finding that they can successfully enter "Break Dalek with rocket launcher."


I wouldn't actually worry about this. Most players won't try "Break Dalek with rocket launcher," and if they do it won't be a problem if it results in them attacking the Dalek. The big problem is understanding too few synonyms, not too many.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 08, 2011 3:43 am 
Offline
User avatar

Joined: Thu Nov 04, 2010 6:30 am
Posts: 999
Location: Gothenburg, Sweden
I agree with Matt.
Inform's Standard Rules contains lot of synonyms for verbs that would in actual life be synonymous only in specific contexts (i.e. for some actions both verbs can be naturally used but for many actions only one of them would be a natural choice): e.g. since "carry" and "hold" are understood as "take", Inform let's you HOLD INVENTORY or CARRY INVENTORY, and if you're wearing something the command HOLD OFF will take it off; you can UNWRAP DOOR; you can PAY BANANA TO HUNGRY ORANGUTAN; you can COVER OFF a device; you can try to CLEAR WHEELBARROW TO OUT (meaning you try to push it outside); and if you can CUT THE GLASS WITH THE SONIC SCREWDRIVER, Inform will also let you PRUNE THE GLASS WITH SCREWDRIVER, SLICE THE GLASS WITH SCREWDRIVER and CHOP THE GLASS WITH SCREWDRIVER (since "slice", "prune" and "chop" are all understood as "cut").

It's probably not worth the drudgery to replace them all with more fine-grained actions that only accept a natural choice of words, and I'm not sure if it's even desirable.

Normally, I suppose, this is not a problem, since few players would try those commands, other than for the fun of it (I can't remember ever trying to unwrap a door).
At least, I guess that's true for native speakers of English. Foreigners like me—and I'm sure there are lots of other non-Anglophones playing IF in English—may well make wilder guesses at a verb, and in that case these way off synonyms might conceivably even be of some weird kind of help.

This, of course, is not to say that there can't be reasons to fine-tune certain synonyms in a specific game. If there is any reason to think that BREAK DAREK would be a natural command for players to try in some other sense than that of attacking him, then you have a good reason for understanding "break" as something new.
Or if you've implemented to different actions that can be performed to different effects on the same kind of things, e.g. if you want players to be able either to open or to unwrap a door as two distinct actions with distinct effects on the door; then, of course, the verbs mustn't remain synonymous.

_________________
Man ska inte tro allt man tänker.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 08, 2011 6:26 am 
Offline
User avatar

Joined: Wed Sep 01, 2010 1:50 am
Posts: 799
Location: Sydney, Australia
Foxaroo, I see you're in Sydney like me. Are you a DWCA member? (like me.) They might be interested to hear about your game at some point. Preferably a point when you know the game's definitely gonna be completed :)


Top
 Profile Send private message  
 
PostPosted: Fri Apr 08, 2011 8:09 am 
Offline

Joined: Wed Jun 23, 2010 6:14 am
Posts: 63
Location: Sydney, Australia
shammack wrote:
I'd try something like this:

Code:
Understand the command "break" as something new.

...
   now the small metal case is open.


That should give you break/cut/smash and leave "attack" unaffected.

That is **PERFECT!!!** I think you've covered every possible contingency, including the if-in-darkness rule. I've incorporated it into my project exactly as you've written it, and it worked immediately without any tweaking. I've tested the present/not present visible/not visible rules and they all worked as desired. Thanks Shammack! :D

@ Matt w and Felix. I quote from the in-game commentary of the Valve software game Portal. "We try not to take the easy way out." I recall some of the bugs in the commercial Infocom games, and some commands that worked despite peculiar grammar. None off the top of my head, but if I dig Zork out I'm sure I'll remember.

severedhand wrote:
Foxaroo, I see you're in Sydney like me. Are you a DWCA member? (like me.) They might be interested to hear about your game at some point. Preferably a point when you know the game's definitely gonna be completed. :)
Long as they're not holding their breath for it ;)

Like I mentioned above, I chose Dr Who as the theme for my 1st project due to the flexibility; go anywhere anytime in the universe and with few restrictions on the order of activities in the game. Eg: If I find that a puzzle on Skaro isn't working out as planned I'll switch to Zeos, Zolfa-Thura or Terra-Omega instead. Anything goes. Even the rooms inside the TARDIS don't need to follow a pattern. I've moved Boot Cupboard 12 to be in a hallway opposite the player's bedroom, whereas it started out aft of the console room.

For my 2nd project I aim to have a furry theme, and my ultimate goal is an Inform7 game based on The Goon Show which will be extremely challenging due to the surrealism - I'll have to write custom code for nearly everything.

Aside: I used to be fairly active in the Doctor Who community when I was in high school and TAFE. I met Dudley Simpson (always liked his music) at Novacon '91, at which were also Katy Manning and Mark Strickson. In my (sadly-on-long-term-hiatus) web comic, my character's companion "GG1" is based on K9 (he was a tin dog, she's an iron horse; IE a robotic locomotive). These days, most depressingly, I have little to no spare time, being stuck in an especially demanding job. I'd very much like to continue my web comic, but Inform7 projects are something I might have more success with, as I can learn and design while on the go (even on the train to work) whereas my comic requires me to be at my drawing desk (not that I'm pretending to have any talent for drawing :cry:).


Last edited by thefoxaroo on Sun Apr 10, 2011 2:33 am, edited 1 time in total.

Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 142 posts ]  Go to page 1, 2, 3, 4, 5 ... 15  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], maga, Shadow Wolf and 2 guests


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