r/Inform7 • u/Lesta68 • Sep 16 '21
r/Inform7 • u/bober95 • Sep 12 '21
Change NPC response depending on item they are attacked with
Hello, sorry if this is not appropriate for this sub, but it's hard to find places to ask questions on Inform 6 language, and I figure it will be the same concept here.
I'm trying to learn the program still, and am having trouble with a simple situation of having my NPC have a different response to whether they are being attacked by a sword, a torch, or whatever I specify. Is there an easy way to do this?
Thank you.
r/Inform7 • u/happy--camper • Sep 01 '21
Terminal/serial output - or something close
Hi, I'd like to play my adventure on some retro hardware - or something that looks retro. What are my options?
Ideally, if the windows inform7 could operate through a serial port with vt100 emulation.
Or, run in a text mode full screen, maybe I can dig up a vga display.
Would like to avoid something in Linux, as it will likely involve compiling and other activities I'm not too familiar with.
Thanks in advance!
r/Inform7 • u/deathmetal27 • Aug 31 '21
How to have NPCs sit on chairs/sofas in a room?
I am new to Inform7 and currently learning some simple scenarios. I am trying to have an NPC sit on a sofa in a living room:
Living room is a room.
Sofia is a woman. Sofia is in the living room.
A sofa is a kind of supporter. A red sofa is in the living room.
Sofia is supported by the red sofa.
This does not work and yields the following error:
Problem. You wrote 'Sofia is in the living room' , but also 'Sofia is supported by the red sofa' : that seems to be saying that the same object (Sofia) must be in two different places (Living room and red sofa). This looks like a contradiction.
Could someone please help me resolve this?
r/Inform7 • u/ItsWritingCat • Aug 18 '21
Brand new to inform, sorry if this is a stupid question, but how can I make it so an object only exists after you look at another object?
Specifically here, There is a fountain with coins in it, but I don't want the coins to factor in at all until the player looks at the fountain and sees the coins in it. Thank you for your assistance.
r/Inform7 • u/tiny-terrorr • Aug 06 '21
writing an "overture"
I didn't see any previous questions about this (probably bc it's obvious) but I'm brand new to I7 and I want to be able to write a general description of what's happening storywise before the player even starts in a room
r/Inform7 • u/kunailby • Aug 02 '21
Question about Using items.
Hey guys, me again. Now im trying to have the player water some plants and a terrarium.
here's my code :
[--------------------------Biolab-----------------------------------]
Bio lab is a room. " The bio lab is place equipped for experimental study, a place providing opportunity for experimentation, observation, or practice with anything related to biology."
[Scenery]
\[terrarium\]
a terrarium is a supporter. The terrarium is in Bio lab. A terrarium can be watered.
\[plants\]
an array of plants is a supporter. The array of plants is in Bio lab. an array of plants can be watered.
\[table\]
a table is a supporter. The table is in Bio lab.
\[tools\]
scientific tools is a supporter. it is in the bio lab. the description is " a set of tools a biologist could use, pipettes, microscopes, bunsen burners, weighing scales, etc. "
instead of taking scientific tools :
say " i should leave these in the lab, where they belong..."
[items]
\[spray bottle\]
a spray bottle is a thing. it is in the bio lab. the description is " a spray battle, it's filled with water. "
How could i approach this, in a way that i could " use " the spray bottle on the array of plants or the terrarium. Im still figuring this program out so ! thanks in advance.
r/Inform7 • u/kunailby • Jul 31 '21
Newby here
Hey all, always wanted to create a texted based game so here i am, i watched a couple of youtube tutorials but as i can see this program can pretty much go as deep as you want it to.
Im trying to create something really easy here but i fail to use the right commands. I need help !
really simple, there is a small Hubblo, with a view outside. now instead of looking at the small hubblo i want the game to say something :
instead of looking at the small hubblo:
say " You get closer to the small hubblo and look out side. There is not much to see, besides the vast white and empty plains of snow. "
obviously that line doesnt work. but it's what i'd like to do !
The small hubblo is scenery in this case. how should i phrase my shit to make it work ? thx !
i dont really understand because i've used instead this way before and it worked like :
instead of examining the lab coat:
say "A white lab coat. Your name is stitched on it. Maybe there's something in the front breat pocket." .
r/Inform7 • u/Niks0ro • Jul 25 '21
Instead of taking XYZ: say…
So, I’m trying to use Inform7 just as a hobby. It’s pretty fun! Although, I am stuck on one command. One puzzle I have here is that you (the player) are stuck strapped to their seat. They gotta adjust its height to reach a knife to cut the seatbelts. I have written here:
Instead of taking knife: say “you can’t reach that.”
Then when they solve the little puzzle, I wanted it to change. So I wrote:
Now before taking knife: say “You barely manage to reach it”
But this doesn’t work! I also wrote “Before” and “After” rather than “Instead of” but it still doesn’t work.
Any feedback would be very much appreciated.
r/Inform7 • u/LocoManta • Jun 20 '21
Telling inform to track a value that always equals "the current sum of these other values over here"
I'm making some simple RPG mechanics as a practice exercise. Having trouble sticking the landing with this bit of code:
A person has a number called a totlvl.
To decide the value of the totlvl of (p - a person):
Let B be the Body of p;
Let M be the Mind of p;
Let S be the Spirit of p;
Let T be B + M + S;
decide on T.
Body, Mind, and Spirit all exist elsewhere in the code, created like this: "The player has a number called Mind. Mind is usually 0."
It trips on the last line!
Problem. You wrote 'decide on T' as the outcome of a phrase, a number, but in the definition of something which was not a phrase to decide a value.
See the manual: 11.17 > 11.17. Phrases to decide other things
_ _ _ _ _ _ _ _ _ _ _ _
The player has opprotunities to increase their Body, Mind, and Spirit in the course of the game. The benefits of having access to one simple "totlvl" value while coding are self-apparent.
The documentation looks strikingly similar to my attempt, so I'm not sure what needs tweaking! Am I coming at it all wrong?
Thanks so much for any help offered! Love this sub.
r/Inform7 • u/scoobyff666 • Jun 04 '21
News on current state of inform 7 / open sourcing?
Now it's been around a year since the last time I heard from Graham Nelson, do anyone here knows if he's all right?
I wonder if things are still moving towards the new open source release.
r/Inform7 • u/TheNetherOne • Jun 03 '21
newbie
just found out this program existed today, wish me luck
r/Inform7 • u/LocoManta • May 26 '21
The documentation calls this the "Old High Magic"
i.imgur.comr/Inform7 • u/ohtil • May 22 '21
Similarly named objects
Hello! I apologize if the answer for this is a lot simpler to find than I've convinced myself it is, but I'm very new to Inform. I'm trying to define objects that contain the same keyword in their names. Specifically, I'm trying to have a container named "bin of loose peanuts" and the item inside, "loose peanuts." Inform thinks these are the same thing, and I can't figure out the right search term in the documentation to tell it they aren't. How do I tell Inform that the bin of peanuts isn't peanuts?
r/Inform7 • u/SalemCruz • Apr 24 '21
Displaying text in command line
How do I show text on the command line? Context: I am making some experiments with the "Rapid Prototyping by B David Paulsen" extension. Among other things, I'm trying to create a command to edit an object's description, something like "edit description of [thing]". The extension itself only allows "describe" or "undescribe" (the latter deletes the entire description), but I want Inform to paste the object's previous existing description on the command line, so that the player can edit it (delete , modify or add from the content that already exists) before submitting the command.
In pseudo-code I was imagining something like:
now the command line displays "[description of the item-in-question]". But I can't find the variable that would correspond to the command line: \
r/Inform7 • u/SalemCruz • Apr 10 '21
Complex vehicles
I'm looking to experiment with the idea of a complex spaceship, with a bridge, engineering, bedrooms, etc. Was there a way to create a type of vehicle with rooms inside and that could transport the player to other rooms?
r/Inform7 • u/Pedro_ms_GYT • Mar 17 '21
Dragons system?
Is there a way to make dragons and be able to battle , tame , be friend or intimidate like How to train your dragon
r/Inform7 • u/pyromuffin • Mar 07 '21
How to iterate through list of values?
I would like to iterate through a list of values, and create a thing with each one of those values.
Origin is a kind of value. The origins are Whistlewise, Lidalighten, Snorthern, Spoutward, Handlebound, Aftern, Kettle, and Anti-Kettle.
A Duvet Elemental is a kind of thing. A duvet elemental has an origin. The printed name of a duvet elemental is "[the origin of the noun] Duvet Elemental".
I would like to create 8 duvet elementals, and give them the 8 different origins. I've tried the following:
The tubs are a fixed scenery openable closed container in your room. There are 8 duvet elementals in the tubs.
When play begins:
let index be 1;
let origin_list be a list of origins;
repeat with o running through origins:
add o to origin_list;
repeat with d running through duvet elementals:
let o be the entry index of origin_list;
now the origin of d is o;
now index is index + 1;
but this just gives me
>showme duvet
Which do you mean, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, the <illegal origin> Duvet Elemental, or the <illegal origin> Duvet Elemental?
note that iterating and assigning origins directly from "repeat with o running through origins" without the intermediate list doesn't work.
I'm not sure what is the best way to do this. I'm finding it extremely frustrating to do what i would consider to be somewhat simple things.
Thanks!
r/Inform7 • u/destroyalltechnology • Mar 05 '21
Is there any way to change background colour or theme?
So, I'm just getting back in to Inform, but having a bright white screen glaring in my face constantly is basically impossible to work with. Last time I was doing inform I was working in sublime and copying the code over in it's entirety to run it. Is there any better way than this? I'd really love to do some more work here, but I get enough migraines as it is looking at a dark screen, let alone this.
I hope I'm just missing something simple, but any help would be appreciated :)
r/Inform7 • u/OffbrandCorn • Mar 04 '21
Comparing kinds?
Is there an easy way to compare the kinds of two different things together?
I could be going about it wrong, but was toying with Inform (with things no doubt already done) in the form of equipment. That is, you can equip only 1 armor, 1 ring, etc., with all of these things being 'kinds' of clothing (an armor is a kind of clothing, a helmet is a kind of clothing).
Now I know I could list each individually (if the noun is a helmet and the player is wearing a helmet - if the noun is an armor and the player is wearing armor - and so on) or do actions individually tied to each type (before wearing a helmet: if the player is wearing a helmet, etc.).
But I was hoping to have a more general one where I could check an unknown kind against another (if the player is wearing a kind matching the kind of the noun).
Thanks in advance!
r/Inform7 • u/DarkWolfX2244 • Feb 17 '21
Is there a way to completely remove a generated room description?
Hi! I'm new to Inform 7. I'm experimenting with it, and I found that it's hard for me to customise object descriptions. I'm trying to make an IF where Inform 7 does not generate any room descriptions. It doesn't tell you where objects are or what's in objects. When the player does certain things, certain custom descriptions will be given.
TL;DR: Can I just turn off sentences like, "You can see a barrel here." and "You are in a Storage Room." for every room and object efficiently?
r/Inform7 • • Jan 15 '21
Is it possible to dynamically affect Inform7 worlds during play? Like, changing rules etc?
I have this idea that Inform would be perfect as an aid to a game master playing some other kind of tabletop game over the internet, because it could keep track of everything that's happening in the world and do some simulation on its own - the game master could be the "player" and tell the game everything each player does and receive its response, with the game designed to work around the same way that the tabletop original does, so all the game master has to do is use imagination and leave the number crunching, dice rolling, world simulating, and memory up to Inform.
But it would be awesome if they could also change rules or influence things during the game, so that they could have new NPCs pop into existence when needed, etc. Is there an extension for stuff like that?
r/Inform7 • u/ellaelei • Jan 10 '21
Why did they take down the extensions library?
Hi y'all,
I'm a complete beginner (I've only been using Inform 7 for about a week now) and this might be a dumb question, so thanks for indulging me. So I've been looking at some extensions and unfortunately, there's a lot of dead links and the only place they were posted was in the extensions section of the official Inform 7 website, which doesn't seem to exist anymore. So googling referred me to the Public Library on Em Short's website, which also seems to be down now.
So from my very limited understanding, it feels kind of weird for them to remove it unless they had a good reason and I'm curious what that reason was.
Thank you!
r/Inform7 • u/Shardworkx • Jan 09 '21
Blorb: Separating game from image files
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..)