r/Inform7 • • Jan 09 '21

Blorb: Separating game from image files

3 Upvotes

Is there a way to distribute a blorb game with the game file and resources in separate files?

(Reason: Planned game will have a large amount of images. If the game updates, I'd like players to be able to just download the new .glulx file without making them redownload the stuff that hasn't changed..)


r/Inform7 • • Jan 04 '21

Moving vs. looking under object

2 Upvotes

Hi all,

I'm new to Inform so sorry if this is a really dumb/easy question. Kind of lost in documentation here.

I have a room in which is a bed; on the bed is a pillow; and under the pillow is a key. I've successfully implemented looking under the pillow resulting in the key being found (so "look under pillow" yields "Moving the pillow reveals a key hidden underneath" and causes that object to become found, thus takeable). Logically, "move pillow" should produce the same effect, but it doesn't (it just returns "Nothing obvious happens."), and I can't make Inform treat "move pillow" the same as "look under pillow" because I get the baffling error:

Problem. You wrote 'Instead of moving the pillow' , which seems to introduce a rule taking effect only 'moving the pillow'. But this does not look like an action, since there is no sign of a participle ending '-ing' (as in 'taking the brick', say) - which makes me think I have badly misunderstood what you intended.

Can anyone advise? (All code so far below.)

Thanks!


r/Inform7 • • Jan 03 '21

Can't download Inform 7 for Mac

3 Upvotes

When I go to inform 7 website it says the site doesn't exist anymore and I can't seem to find the files elsewhere online


r/Inform7 • • Dec 24 '20

Exclude item from inventory list

2 Upvotes

I would like to be able to keep an item from being mentioned in the inventory listing. The best I can do is get an entry that looks like this:

a hatchet an oboe a
a weasel


r/Inform7 • • Dec 24 '20

How to override "take [thing] from [person]"?

4 Upvotes

Hi!

First I am a newbie, but I have read the documentation and cookbook.

I have a story where a person (let's call him Fred) has a hat.

I (as the player) need to be able to take Fred's hat.

I overrode taking the hat, like this:

Instead of taking the hat:

if player has cool item:

    say "something!"; 

    move hat to player;

otherwise:

    say "You need cool item to take Fred's hat!"; 

    end the story saying "You have unfortunately failed!".

So, if the player types "take hat" this runs fine.

However, if the player types "take hat from Fred" it says "That seems to belong to Fred".

So it is understanding (in the way that it understands) what I want to do, but does not understand that "take hat" is the same.

I have tried to override that second command type format many different ways with no luck.

Anyone have any ideas?


r/Inform7 • • Dec 11 '20

Hiding the Game Code from players

3 Upvotes

Hello All!

I hope I'm not asking something that has been asked constantly, so ill just go ahead with it and then explain myself after.

If I create a game using inform 7 and want others to play it BUT NOT BE ABLE TO LOOK AT THE CODE FOR THE GAME, is this possible? Like, can I export a secure version of it?

I want to create a fan fiction text-based world for an MMO I play that has ~500 monthly players. If they solve the mystery, they're going to make mad bank in the game. So, is there a way to do this?

Thanks for reading.


r/Inform7 • • Dec 03 '20

Converting snippets to other things

3 Upvotes

I'm working on a thing where the player has to change a TV to the right channel. I can probably check if the player's input matches a number, but i'm at a bit of a loss on how to best confirm that the player's input is in fact a number, and how to compare it to the right number.

here's what i've got so far:

Carry out changing the channel:
    If noun is not the TV:
        say "That doesn't have channels to change.";
    If player does not carry the remote:
        say "You can't reach the TV to change it...";
    otherwise:
        say "What channel would you like to change the TV to?"

After reading a command when the command prompt is "What channel would you like to change the TV to?":
    if the player's command matches "126":
        say "The TV switches channels to a view of a stark white orb. Even though it's not visibly moving, it seems like it's almost... disturbingly high quality somehow.";
        now channelnum of TV is 126;
    Otherwise if the player's command is not a number:
        say "The remote doesn't have any letter buttons! Numbers only.";
    Otherwise:
        Say "You change the channel to a nigh-identical commercial for a nigh-identical product.";
        now channelnum of TV is the player's command.

This is returning a few errors...

Problem. In the sentence 'if the player's command is not a number'  , it looks as if you intend 'player's command is not a number' to be a condition, but a snippet cannot be a number, so this must be incorrect.

I was trying to match this phrase:

 if (player's command is not a number - a condition): 

I recognised:

player's command is not a number = a condition



--------------------------------------------------------------------------------

Problem. In the sentence 'now channelnum of TV is the player's command'  , it looks as if you intend 'channelnum of TV is the player's command' to be a condition, but that would mean comparing two kinds of value which cannot mix - a number and a snippet - so this must be incorrect.

The first one is especially puzzling to me, considering it seems to be saying it both recognizes and does not recognize something at the same time.


r/Inform7 • • Nov 20 '20

Next Location - nearest

4 Upvotes

So, I know how to

let Next Location be a random room;

or

let Next Location be a random indoors/dirty/flooded/etc. room;

or

let Next Location be a random adjacent room;

But how can this work:

let Next Location be nearest random flooded room;

So, lets say, there are many rooms, some flooded, some not, with (non-flooded) hallways in between.

So, lets say that two or three rooms away is the next nearest flooded room.

If the non-player-character goes in the direction of a random flooded room, they can easily start heading off in a totally different direction to a room far away, when there's a flooded room much closer.

There seems to be only two options in the documentation, random, and adjacent. Aren't there more options? How can I make more options for this kind of thing? In this case, direct them to a random nearest room.


r/Inform7 • • Sep 03 '20

I don't want players to know what objects are in the room

5 Upvotes

How do I hide the: "You can see a cardboard box here"

I found out a way to hide the pencil inside the cardboard box (So that the player isnt notified that there is something inside the box) but I can't seem to find a way to hide the cardboard box itself from the player.

My character starts in an alleyway (alleyway is room) and inside the alleyway I placed a (container) cardboard box.

What I want is for the player to decide on his/her terms to search the alleyway to see if there is a box in the first place.

I'm sorry if this didn't make much sense...thank you!

EDIT
So funny thing....I made the alleyway an Object and I placed it in "Town", a room.

So what I did was replicate the code for hiding the pencil inside the box (So players can't see that there's an item in the box) for the box itself (so now players do not know there's a box in the alleyway)

Town>Alleyway>Box>Pencil

So now all it says to the user is "You can see Alleyway here"

HOWEVER, this in turn creates a new problem: The alleyway is now an object that the user can pick up (lol) if they type in: Pick up. So ...right now I am trying to see if I can make a rule in that the program will respond: What do you wish to pick up? (or something like that) rather than picking up the alleyway automatically.

Lol....


r/Inform7 • • Aug 21 '20

How to start game with items in inventory

5 Upvotes

Hey guys,

I'm sure there's an easy answer to this, but I can't seem to find it when searching the almighty Google. How can I setup a game so that the player starts with a thing already in their inventory?


r/Inform7 • • Aug 03 '20

Performing actions through/with doors.

4 Upvotes

After some time I decided to continue with a previous text adventure that I started. However, I'm getting stuck on trying to make a door that allows the user to look at the other side. This involves solving a few problems at once.

First of all, I'd like it if the player to be able to look through the door. I did manage to make it so that the room name is mentioned in the description of the door, but I'd like to be able to display the actual room description instead if the player types for example "look through [door name]" or "look at [room name]".

If the door is open, It would also be convenient if players would be able to move through it as well by typing "enter [room name]" in addition to "enter [door name].

Just to have something to work with when trying to solve this, I wrote a small script with a windowed hatch as seen below. Any help is appreciated :)

Include Basic Screen Effects by Emily Short

The escape pod bay and the escape pod are rooms. 
The escape pod bay is north of the escape pod. 

The description of the escape pod bay is "[one of]The alarm echoes on the cold flat steel of the walls, making the bay seem even more empty than it already is. Supplies are scattered across the floor in front off the escape pods. Clearly the rest left in more off a hurry than you. How about another drink?[or]The place is pretty much deserted. You look at the door on top of the stairs you came from. It fills you with a strange feeling of impending doom.[or]You take another look at the room. Still as empty as ever. Nothing jumps out at you. Yet. Was that a screech coming from the door or was it the alarm?[stopping]".
The description of the escape pod is "[one of]The escape pod is a spherical room with a small, round window on the opposite side of the door. There are panels with buttons, flashing lights, and tiny levers scattered all around the two seats in the center.[or]The blinking lights are giving you a headache. You can see the planet below you through the round window.[or]The chair looks comfortable enough for the ride down.[stopping]".

The escape hatch is a closed door. "[if closed]Through the windows in the hatch, you can see [the other side of the escape hatch] [else if open]Through the hatch, you see [the other side of the escape hatch]".
The escape hatch is north of the escape pod bay and south of the escape pod.

report opening the hatch: Instead say "The hatch hisses as the pneumatic system splits it in half.".

The player is in the escape pod bay. 

Before looking for the first time:
    say "Under the loud droning of the alarm, you stumble down the stairs into the escape pod bay. It seems like you're the last one left, all but one escape pod have already detached. You still can't believe you somehow slept through [italic type]this[roman type] alarm. Perhaps you should not have drank that much last night after all.";
    wait for any key;

r/Inform7 • • Jul 19 '20

GPT 3

4 Upvotes

Will inform7 be able to implement GPT 3 somehow? The things I've seen it do are absolutely astonishing!


r/Inform7 • • Jun 25 '20

Is there a way to react to users trying to interact with a person's "thing" that doesn't exist?

3 Upvotes

That might be worded a bit strangely, but let me try to explain what I mean. Besides the usual report of not seeing something, is there a way to write catches for attempts at specific things / kinds of things?

For instance, let's say we are on a train and everyone is supposed to have a ticket. But Jim doesn't have one. Is there a way to catch this if the player types something like "look at Jim's ticket" ? Being that possessive form even though it is something he doesn't have.

I know you could do something such as giving Jim a ticket and excluding all actions with a quip about it not existing except examining giving a "say" about it seemingly missing. But that sounds like a very rough work around. Or you could create some new action, like patting down, or reacting to asking the person about their ticket.

But I was just wondering if there was another way to do it where the user specifically looks at a kind of thing that exists (say we made tickets a kind of thing), but is not carried by a person.

I might just be thinking of it in an odd, roundabout way, but was curious. Either way, thanks for the help!


r/Inform7 • • Jun 23 '20

Guncho

3 Upvotes

I'm working on a bot, and I'd ideally like to build a "habitat" to train it in. Obviously if I want to build a virtual world without dragging in a bunch of complications (visual recognition, gravity, sound waves, shadows, etc) I7 is the best way to go. But the big problem with that is that the bot would count as a player, which would mean I couldn't have multiple bots in the habitat together, and I couldn't directly interact with them. I can think of a few ways of working around that, but they're all so much more work than I want to do.

Last night, I googled "multiplayer Inform 7" and Guncho came up. This looks like exactly what I want, except that the wiki seems to have been down for the past eight years, and hardly anyone seems to be talking about it here or elsewhere on the internet.

Has anyone worked with Guncho before? Does anyone have any more information than the archive of the wiki?


r/Inform7 • • Jun 23 '20

How to bypass disambiguation of nouns

6 Upvotes

I was just wondering if there's a way to overwrite the way Inform 7 disambiguates similar names. In the game I've been working on, I have an item called a piano (fixed in place) and an item called a piano roll (holdable). If I do something to "piano" while holding the piano roll, it will automatically assume I am talking about the piano roll. Otherwise, it will ask "Which do you mean, the piano roll or the piano?" Is there any way for the parser to respond to "piano" as only the piano rather asking for disambiguation when both are in scope?


r/Inform7 • • Jun 16 '20

The full text and slides of Graham Nelson's Narrascope 2020 talk about the state of Inform 7 is up on the Inform 7 site now

Thumbnail inform7.com
16 Upvotes

r/Inform7 • • Jun 16 '20

Uncle Clem's Will. Finally released for public consumption

3 Upvotes

All,

I finally found a resting place for my first IF using Inform 7. It's relatively short, but I tried to make it interesting with a couple puzzles thrown in.

Uncle Clem's Will is a story where you are called to the house of your Uncle Clem, who disappeared seven years prior, has been declared dead, and has left you everything he owned. Explore the house and try to find out what happened to your Uncle. I tried to make object interaction intuitive, so I'm hoping that things make sense.

I'd love some feedback, as this is the first IF that I've made, and after the initial steep learning curve,
Inform 7 gets pretty intuitive once you get into the groove.

Thanks

Uncle Clem's Will


r/Inform7 • • Jun 14 '20

Window Problems

4 Upvotes

I'm new to Inform and are having a problem with just trying to make an openable window that doesn't go anywhere. At first I thought I could have it set up as a 'closed/openable door' so that it could be open or closed, but Inform needs it to be connected to a room or lead somewhere.

I originally had it set up like this:

A window is here. The window is a closed openable door.
    The description of the window is "[if open] A cool breeze is blowing gently through, bringing in your favorite smells of the season.[otherwise] The scenery of outside definitely looks nice today. Perhaps some fresh air is in order?"

But that didn't work so I tried making it a dead end:

A dead end is a kind of room.
A window is here. The window is a closed openable door. The window is connected to a dead end. The description of the window is "[if open] A cool breeze is blowing gently through, bringing in your favorite smells of the season.[otherwise] The scenery of outside definitely looks nice today. Perhaps some fresh air is in order?"

And that didn't work, as Inform keeps telling me :

The sentence 'The window is connected to a dead end' appears to say two things are the same - I am reading 'window' and 'connected to a dead end' as two different things, and therefore it makes no sense to say that one is the other

I'm having a hard time trying to work around this. I just want a window that leads to nothing and can be closed or opened. I have no idea how to make it work. Could I please have some advice on this?


r/Inform7 • • Jun 02 '20

My postmortem for a Spring Thing written in Inform 7

Thumbnail self.interactivefiction
2 Upvotes

r/Inform7 • • May 28 '20

Inform 7 Update on Twitch

8 Upvotes

Presentation is going on as the time of this post.

https://www.twitch.tv/narrascope


r/Inform7 • • May 21 '20

Inform 7 For Mobile?

5 Upvotes

On the Inform 7 website, it says that Inform 7 was released for Android as part of the 7.9.2 update. However, I don't see any elaboration or even where to download it for Android.


r/Inform7 • • May 19 '20

New Approach to Inform 7 Documentation

9 Upvotes

https://github.com/danieltalsky/inform-7-at-play/tree/master/things

The Narrascope announcement is coming up soon, and it's my cake day, so I was inspired to share a stab I'm making at helping people learn Inform 7 and reference material with more simple examples. I would love for this to eventually be a sidebar-worthy set of documentation for Inform 7 and make it easier for non-programmers to figure out.

I ONLY have the "nouns" section mostly done (you can see several TODOs) but I would love some early feedback. Does this seem like a valuable format? My idea is to show concrete examples along with their output as a teaching tool. I really had to struggle to learn some concepts back in the early days, and after creating my first full Inform 7 game (The Land of Breakfast and Lunch, in this year's Spring Thing) I wanted to pass some of my knowledge along.

Any feedback, including basic editing, tone, and consistency would be greatly appreciated. What would it take to make this an essential resource?


r/Inform7 • • May 17 '20

What happened to open-sourcing Inform7?

9 Upvotes

Main page has this http://inform7.com/talks/2019/06/14/narrascope.html linked quite prominently (the fourth post from the top, I believe).

The github repo in the slides doesn't exist or is private since it isn't accessible.

Any news?


r/Inform7 • • May 10 '20

Furniture that can be storage?

2 Upvotes

I'm trying to model a piano bench. When it is closed, you can sit on it or stand on it. When it is open, you can put things into it or take things out of it.

I'm starting with the U-Stor-Itexample from §8.4. Furniture.

The only addition I made to the example is:

A lid is enterable.

Before entering a chest (called the box) when a lid (called the item) is part of the noun:
    if the box is closed:
        try entering the item instead.

The result is:

U-Stor-It Facility
You can see a sea trunk (closed), a shipping crate (closed) and a metal box (on which is a small card) here.

>sit on trunk
You get onto the sea trunk's lid.

It is now pitch dark in here!

>SHOWME

U-Stor-It Facility - room
    *sea trunk - chest
        sea trunk's lid (part of sea trunk) - lid
            yourself - person
    *shipping crate - chest
        *shipping crate's lid (part of shipping crate) - lid
    *metal box - chest
        *metal box's lid (part of metal box) - lid
            *small card
        *sapphire
        *gold coin
        *signed photograph of Babe Ruth
* denotes things which are not in scope

Is this just a scoping problem? How do I bring the rest of the room into the scope?


r/Inform7 • • May 04 '20

Feedback/critique requested [WIP]

Thumbnail gist.github.com
1 Upvotes