Just Adventure News : News: Video Games: The Movie Press Release: Indie Narrative / Strategy Game 7 Grand Steps Will Release June 7 for PC and Mac Gold: The Incredible Adventures of Van Helsing Demo: Jack Haunt: Old Haunting Grounds Alpha Demo Released Game: Might And Delight Presents "Shelter" Early Gameplay Footage Press Release: Legendary Monsters Are Invading Age of Conan Press Release: New Settler and Scientist Path content for WildStar News: Towdie on Kickstarter News: H.P. Lovecraft's Dagon Press Release: Makers of Son of Nor PROVE mind control is genuine
Home - Forum Home
Welcome Guest, please Login or Register!
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Topic: Inform 7 Q&A Assistance?

    Page 1

16 DEC 2006 at 5:18pm

SmoothCriminal

Intergalactic Janitor
Intergalactic Janitor



Posts : 1
Joined: 13 DEC 2006

Status : Online
I just joined this forum, as it turned up as the first when I googled "Inform 7 forum".  I just started with inform 7 and would like to know if there's a place to get advice and help resolve errors.  I like the new rule-based code, but am finding it is not as intuitive as I had thought it would be.  The statements need to be very specific, and ironically, I find myself playing guess the verb with my compiler now.

Right now I'm having trouble with "if" statements which are given only one page in the documentation without any good examples.  I'm trying to replace a command in a single room.  So the universal replacement I'm trying to apply to the one room is:

Instead of going a direction say, "Text."

What I would like is for that rule to apply only to a single room, and have some sort of 'unless' condition which will nullify it and allow the player to leave.

I'm also having a lot of trouble with the "say" statement.  It never seems to work.  If I use it the compiler thinks I'm trying to name something.  Even with item descriptions.

Profile Search


19 DEC 2006 at 1:05pm

emshort

Intergalactic Janitor
Intergalactic Janitor



Posts : 5
Joined: 30 JUL 2006

Status : Online
The best place to get assistance like this is the rec.arts.int-fiction newsgroup, which you can access with a newsreader or through Google Groups, here:

http://groups.google.com/group/rec.arts.int-fiction?lnk=li

As to your particular question about

Instead of going a direction say, "Text."

-- your trouble is punctuation. (Yes, Inform *is* still a programming language, and does still have a syntax...) You want

Instead of going a direction, say "Text".

OR

Instead of going a direction: say "Text".

The colon version is more flexible, since when you use the colon there you are allowed to follow up with more instructions, like this:

Instead of going a direction:
  say "Text";
  move the player to the East Drawing Room.

or something to that effect.

If you further want to restrict this rule to happen only in a single room, you might have

Instead of going a direction from the East Drawing Room:
  say "Text".

You don't need an explicit "if..." for this; conditions can be made part of the rule heading, as shown in the chapter on Basic Actions.

One approach that some people have found helpful is to copy examples over into the source window that do roughly what they want to do, then play with them to modify the effect. Obviously this isn't a good way to program an entire game, but it can help get a person started.

Profile Search

    Page 1

Jump to:
0 Members Subscribed To This Topic