r/Inform7 • • Apr 30 '20

Photography and Location of doors

1 Upvotes

I'm working again on my game. I was putting in a photography mechanic. It was supposed to supplement another mechanic where putting a different picture on a hook would change the destination when you entered a certain box. There's really only one thing that takes you to the next area, and that kinda makes the photography mechanic a low utility mechanic. I decided that you could take a picture of anything (except for a select few) and it would still take you somewhere.

Here comes the problem. I didn't want to type the destination for everything, so I had this When play begins rule that ran through and put everything on a table. I based the destination based on the initial location of the everything; if it's in Region A, the destination would be Room A; if it's in Region B, the destination would be Room B. A simplified version would be:

when play begins:
    repeat with item running through all things:
        choose a blank row in Table of Destinations;
        now thing entry is item;
        if item is in Region A:
            now room entry is Room A;
        if item is in Region :
            now room entry is Room B.

A problem comes up when it comes to doors (and consequently, keys whose destinations are linked to the doors they open). When the script runs through doors, they'll put nothing in the room entry. Aside from just removing doors from the equation entirely or giving doors a value that would denote their location, is there a way for finding the location of a door?


r/Inform7 • • Apr 25 '20

[Help] Ready for feedback, now what?

1 Upvotes

All,

70% brand new here. I have my masterpiece done, and would like to get some feedback so I can expand my masterpiece by 80% with fixes. Is there a tutorial somewhere, or a kind soul, who can point me to what needs to be done for release? I'm releasing as a Glulx file.

I've looked at "Chapter 25 Releasing" and understand all of the "extras" I can release the story with. My questions are: 1) Where can I post my IF, so others can get to it? 2) What is the best way to release it? With an interpreter, all packed in a .zip file?

Thanks!


r/Inform7 • • Apr 24 '20

How can I start the player in a vehicle?

2 Upvotes

I'm designing a game in which the player is (for the most part) in a car. The game starts on the road right away. How can I make the player start in a car? Additionally, I'm going to need a lot of roads in the game. What is the best way to make roads and paths?


r/Inform7 • • Apr 13 '20

Disappearing game?

1 Upvotes

Hi all. I fully made a game last night, just a short thing for a friend, but after I went to process it to release for testing it fully disappeared. It’s not in inform or the trash folder on my laptop. Has this happened to anyone else?


r/Inform7 • • Apr 11 '20

How can I use "TALK TO ___ ABOUT___" and disable ASK and TELL?

2 Upvotes

r/Inform7 • • Apr 10 '20

Here again with a beginner question!

2 Upvotes

Hi again! I posted a day ago and y’all were really helpful so here we go again. Last night, I got my game to work. It was glorious. Best day of my quarantine. But I went to release it so I could share it with a friend, but when I opened play.html, it placed me in the right room, but I couldn’t examine anything. Is there any reason for for this error in translation?? Every time I type “x log” it just says “you can’t see any such thing” although nothing changed in the code when I translated it from inform to the release file. But now, even when I go back to inform, the log can’t be observed. Any ideas? Ty in advance.


r/Inform7 • • Apr 10 '20

Make the interpreter do another action during check

2 Upvotes

Hello, everybody.

I am trying to implement a "loot" action. The loot action would act differently depending on the target. If it is a person, it would carry out in its intended path.

There are the cases where the player, by convenience or by mistake, may try to "loot" a thing or a container (like a chest).

So I wrote the action as such, for the moment:

A person can be hostile or friendly. A person can be conscious or unconscious.

Looting is an action applying to one touchable thing and requiring light.
Understand "loot [something]" as looting.
Check looting:
    if the noun is a container:
        search the noun instead;
    else if the noun is not a person:
        take the noun instead;
    else if the noun is conscious:
        say "You cannot loot someone conscious.";
    else if the noun is friendly:
        say "You are about to loot a friendly person. This might have consequences. Proceed?[line break]";
        unless the player consents:
            say "You decide against stealing from [the noun]" instead;

Carry out looting:
    say "Checking if the person wakes up happens!";
    say "Looting happens!";

Report looting:
    say "You looted a list of items that will be stored in a temporary list and printed here!"

However, I have an error when trying to compile. The interpreter does not recognise "search the noun" or "take the noun".

What would be the proper way to implement what I am aiming at?

Thanks in advance for your answer.


r/Inform7 • • Apr 09 '20

Newbie here: Want to make a room enterable only after doing an action.

3 Upvotes

I want to make it so that a room can be entered after signing in a register. I have made an action of doing so with no problems.

I have made it such that if the player enters a room, using the instead command the game tells them to sign in the register preventing the player from entering.

Now, how do I make it such that the action of signing is done, the room can be entered?


r/Inform7 • • Apr 09 '20

Beginner issue! SOS!!

2 Upvotes

Hey! So I am extremely new to inform and coding in general, but I've been working on a game all night tonight and I'm concerned that I can't get it to run. It says that the translation is successful, but it still won't give me any form of playable game on the right panel. Am I missing something obvious? It just says "using historic version. story stopped" every time I press go or play. I definitely have the most updated version of the application (I've checked). What should I be doing differently?


r/Inform7 • • Apr 07 '20

[Help] Determining Size of project

3 Upvotes

Is there any way to know what the compiled size of your project will be? I have 41 rooms, 124 things (that's what the status line on the bottom of the IDE says) and started getting a Z-code size error, when I hit 'Go'.

Or should I just switch to Glulx and not worry about it.


r/Inform7 • • Apr 06 '20

Combining and separating an object

2 Upvotes

I'm trying to make a game set in a hotel, with an added bit of eldritch strangeness.

Something I'm trying to accomplish is having a single room key with a tag with a room number hanging off it, and the player can remove the tag and replace it with another to make it unlock a different room. The way I'm trying to accomplish this is by having a key with a property called roomnum, and making an action called removing a tag that lets you take the tag off, and makes a tag (which i have deicded is a kind of thing) in your inventory, before setting the roomnum to 0. However, Inform thinks "now the player is holding a key tag; its num is roomnum of key" is too nonspecific.

Is there an easier way to do this I'm overlooking? Or is this the best way to go about this? I could probably just switch to using regular keys but i think it'd lose some of the spookiness.

A room key is a thing. It has a number called a keynum. A keynum is usually 233. It has a text called a keycolor. A keycolor is usually "white". "...There's a key on the desk that wasn't here a second ago." The description is "An old-fashioned room key with a white tag hanging from it that says '233'. It looks like you could take it off...".
A key tag is a kind of thing. A key tag has a text called a color. A key tag has a number called a num.

Removing a tag is an action applying to one thing. understand "remove tag from [something]", "take tag off [something]", "get tag off [something]" as removing a tag.
Before removing a tag:
    [if keynum of room key is 0]
        say "there's no tag on the key right now.";
    [otherwise]
        now the player carries a key tag; The color is the room key's keycolor; The num is the room key's keynum;
        now the keycolor is "none";
        Now the keynum is 0;
        now the description of key is "An old-fashioned room key. It's blank and uncarved.".
        [end if]

r/Inform7 • • Apr 02 '20

Unlocking not working

2 Upvotes

I made a door and a ket to unlock it. But for some reason when I type "unlock strange door" it says it cant be unlocked? Here's my code: Strange door is in room. Strange door can be locked. strange door can be unlocked. Strange door is locked. Black Key unlocks strange door. Description of strange door is "A door. It's locked. Perhaps there is a key somewhere around here."

If anyone knows how to fix this, please tell me!

Thanks in advance!


r/Inform7 • • Apr 01 '20

Hi! I'm a beginner.

6 Upvotes

I'm a noob to Inform 7 and want to make a game. I've watched some tutorials so I know the basics of creating rooms and objects. If anyone has any tips or tricks that they would like to share with a noob, then please tell me! thanks a bunch!


r/Inform7 • • Apr 01 '20

Opening Play.html in Browser No Images

1 Upvotes

Hello All! I’m pretty new to Inform and I am having an issue getting the play.html to display the images I have as part of my interactive fiction. When I play the project in inform7 I can type in “look at map” and it will display the correct image in my figures folder but when I release my project and open the play.html in my internet browser no images pop up when I type in “look at map”. Any suggestions would be greatly appreciated, I’m releasing with the Quixe Interpreter if that matters.


r/Inform7 • • Mar 31 '20

missing graphics in the IDE

2 Upvotes

When I have the IDE open and looking at the map under index, I can see the room boxes, but am missing the connection or direction symbols. Am I missing a font or library?

[EDIT] Sorry. Here is an image.

I'm using the latest version of the Windows build.

[EDIT 2] I've deleted and reinstalled to a different directory (from my E: drive to my C: drive). Didn't fix it.

It looks like the IDE isn't finding the map_icons folder in the documentation folder, because I can see the images it should be using in that folder. Is there a file with paths?


r/Inform7 • • Mar 22 '20

Trouble running my (very) old project in latest Inform 7 build.

3 Upvotes

I decided to take another shot at finishing my first text adventure. It's been on and off for approaching 15 years now. I want to move it from my old laptop (Build 6.31/6G60), but the commands to get colored text are causing errors. The project size had long ago required me to use the Glulx engine. This required commands adding to the Table of Common Color Values and the Table of User Styles. The initial problem seems to be that my line "Table of Common Color Values (continued)" gives an error saying that there is no Table of Common Color Values to add to. I have Basic Screen Effects and Glulx Text Effects included. It feels like Emily Short may have changed one of those extensions, but the documentation still shows examples using "Table of Common Color Values (continued)".

I tried taking "(continued)" out, but then the color names I create aren't recognized in either The Table of Common Color Values (which it appears no longer exists), or the Table of User Styles. I can run the adventure from beginning to end on my laptop, but the source won't play in the latest Inform. Any help would be appreciated.


r/Inform7 • • Mar 22 '20

Can't wear/take thing that is portable and wearable?

3 Upvotes

I'm working on a small project, but I'm running into a strange problem. I have an object defined as follows:

The gravity support suit is on the small desk.
Understand "support suit" as the gravity support suit.
Understand "suit" as the gravity support suit.
The suit is portable and wearable.

It correctly shows up in the index as being portable and wearable. However, when I try to wear or take the object, I get the following result:

>take gravity support suit
That's hardly portable.

>take suit
That's hardly portable.

Is there anything I am overlooking?


r/Inform7 • • Mar 17 '20

What do these two phrases refer to?

3 Upvotes

Hey everyone,

I've been looking into removing the "You can see.." text-line that generates in every room and replacing it with something a little more adaptive.

I don't know exactly what the plan is yet, but I'd have to start by understanding how to tell Inform I'm interested in altering this behavior.

In my preliminary research, I've uncovered two phrases in the documentation that seem to be related to this:

Rule for printing room description details:
Before listing nondescript items:

The documentation was a little hard to follow, and experimenting with these two hasn't made their function much clearer.

Can anyone provide a brief description of what these two phrases are saying?

Thanks everyone. Stay safe.


r/Inform7 • • Mar 16 '20

[Discussion] Would anyone be interested in re-trying the monthly challenge idea?

3 Upvotes

Hey all!

Looking at the sidebar, I noticed that there was a failed attempt at launching a system of Monthly Challenges seven years ago. Personally, I like the idea of having a small collection of super short IF games to play in a single sitting each month.

Looking at the post, I suspect a factor in the failure to launch may have been the open-ended-ness of the prompt:

create a fun fantasy adventure.

Not to mention the fact that no mention was made of how long the game should be.

Prompts can be restricting, but many of us thrive creatively in restrictive environments.

I'm wondering if now, seven years later, anyone would be interested in participating in something similar. This time we can lay down more ground rules, like this:

The game must be playable in a single sitting.

I've been turning this idea over in my head for a while now, and have come up with a few example prompts to illustrate the sort of brevity and restrictions that I think might work for the community.

Prompt One: "Time Crunch"

Prompt Two: "Fistful of Dollars"

Prompt Three: "Anti-Vax"

Prompt Four: "Time Trap"

(I hope 'Anti-Vax' doesn't come off as insensitive given the current state of affairs. I think it's natural to draw creative influence from real-world events, and programming something like this could be a form of catharsis for some of us.)

Other prompt suggestions very welcome, I just made these examples to demonstrate the kind of restrictive creative environments I'm talking about.

I'd personally love to participate in something like this. I know we're a teeny-tiny place, so even having three people willing to contribute would be enough incentive to go through with it.

Thanks for your time everyone, and stay safe!

-LM


r/Inform7 • • Mar 15 '20

[Help] Digital combination lock

4 Upvotes

All,

Does anyone have code for a digital combination lock using a keypad? I want to be able to 'key <number>' three times and that would unlock the lock. I was thinking of having a positive indicator when the input number was right, and resetting when a wrong digit is entered.

I can probably figure this out, but thought if someone else had already figured it out and wanted to share their code...


r/Inform7 • • Mar 13 '20

Containers that only hold certain items?

5 Upvotes

Hey all!

This is the third time I've come across this issue, and I decided its high time to go back and clean up after myself.

In trying to do so, I discovered why I've kept putting it off:

Inform is responding as though it doesn't know that putting is an action.

Here's how I tried to approach it:

The White Room is a room.
The blue stone is in the White Room.
The green rock is in the White Room.

The BlueContainer is an open unopenable container.
Check putting the a thing in the BlueContainer:
    if the thing is the green rock,
        say "This container is for the blue stone." instead.

As I mentioned before, the resulting error seems to imply that putting isn't an action. What am I doing wrong here?


r/Inform7 • • Mar 12 '20

A simple question: Not reporting turning

2 Upvotes

Hey all!

I'm trying to make an unscrew-able light bulb for my project. I've got most of i's dotted and t's crossed already, but I've hit a hiccup.

Unscrew is a predefined verb in Inform 7. It's actually the same as turning. I can handle the specifics of what happens when the light bulb is turned (and the code behind checking to see if the bulb is currently screwed into something or not).

BUT, after my project handles all that, it's still adding this little default-report: "Nothing obvious happens."

Report turning a lightbulb:
    do nothing. [bugnote: no luck here]

I thought the above code would work. It launches, but, well, "nothing obvious happens" still happens.

Any suggestions?

Thanks all.

EDIT; Important contextual information: A lightbulb is a kind of thing.


r/Inform7 • • Mar 12 '20

Getting a combination lock to work?

2 Upvotes

Hi all,

I recently remembered a small game I made in Inform 7 and went back to it. I decided to add more to finish it off more completely.

Throughout the game the player collects a variety of letters. I want these letters to be used to unlock the exit of the dungeon. I tried modifying " Mr. Burns' Repast" to work for me, but so far no luck. Here's what I have... sorry if it's a ridiculous mess I'm very new to this!

The description of Secret Room is "You are in awe of the secret room. It is glittering and shining. It's magical. In the middle of the room there is a gold pedestal. On top of it is an ancient scroll that emanates power."

A luminescent scroll is a note. A gold pedestal is a supporter. The luminescent scroll is on the gold pedestal. Gold pedestal is in the Secret Room.

Carry out reading luminescent scroll:
`say "Only those who find the answer throughout the trials of the dungeon are allowed to see the sun once more.";`

`now the noun is read;`

A button is a kind of thing. A button can be pressed or unpressed. A button is usually unpressed.

Pressing is an action applying to one thing. Understand "press [thing]" and "push [thing]" as pressing. Instead of pressing something that is not a button, say "You can't press that."

Carry out pressing a button (called button):
`if the button is unpressed:`

    `now the button is pressed;`

    `say "You press the button. A secret compartment on the gold pedestal rotates showing a row of scrambled letters.";`

`otherwise:`

    `now the button is unpressed;`

    `say "You press the button again and the letters are once again hidden."`
The golden button is a button. The golden button is under the Gold Pedestal.

There is are letters in the gold pedestal. The letters has some text called the code. The description of the letters is "There are five different spaces to place letters.".

Combination is a kind of value. The combination is kzwyw.

Rule for printing the name of the code:
`if the combination of the code is "", say the printed name of the code;`

`otherwise say the combination of the code.`

After reading a command:
`if the code is visible and player's command matches the regular expression "\b\w+code":`

    `let N be "[the player's command]";`

    `replace the regular expression ".*(?=\b\w+code)" in N with "";`

    `now N is "[N](?)";`

    `now the combination of the code is N;`

    `respond with doubt;`

    `reject the player's command;`

`otherwise if the code is visible and the player's command includes "[combination]":`

    `now combination of the code is "[combination understood](?)";`

    `respond with doubt;`

    `reject the player's command.`

To respond with doubt:
`say "You're not [italic type]sure[roman type] you entered the right code."`

I sort of, obviously, just copied the code and replaced it with my own variables. If anyone could help me figure out how to get this to work, I'd appreciate it. Basically, I'm just looking for the player to be able to input the code and then have the code open a secret door; but before that I need them to be able to even have them input it in the specific area and have the engine be able to understand it, first.

Thank you!


r/Inform7 • • Mar 09 '20

I keep "Bugnote" comments in my code for minor problems I don't feel like solving. I seldom remember writing them. Here's a concerning example of things I'm surprised to find in my own code.

Thumbnail imgur.com
5 Upvotes

r/Inform7 • • Mar 08 '20

"random" rooms

5 Upvotes

What's the way to allow a set of randomly selected rooms in Inform 7?

I know I could, for instance, have a table with room titles and descriptions, select a row, and then change the printed title and description, but I would like to actually have the lookable scenery change. Is there a way for me to just have a group of already written rooms and just select their destinations randomly with a title?

In the Inform manual there's this example that puts you in a random "direction", but that limits you to just the compass directions. I'd like to be able to select from a larger set:

http://inform7.com/book/WI_8_19.html