I have a road East 7th Street.

East 1st Street, East 3rd Street and East 4th Street are all north of East 7th Street.

If I code it like that an expected error appears.

The question now, is there a way to overcome this problem?

Error message explain my problem better:

``````Problem. You wrote 'East 7th Street is south of East 4th Street, south of East 3rd Street and south of East 1st Street'  , but in another sentence 'Gless Street is north of East 4th Street, south of East 3rd Street'  : but this looks like a contradiction, which might be because I have misunderstood what was meant to be the subject of one or both of those sentences.
``````

Not sure if I explained it correctly first time around.

Whatâ€™s the desired behavior here? Itâ€™s fine to have different exits all lead to the same room (like, if you go S from any of E 1st, E 3rd, or E 4th, you wind up in E 7th) but one exit leading to different rooms is a challenge because then Inform doesnâ€™t know whatâ€™s supposed to happen. So if you type N in E 7th, where are you supposed to go?

(If the idea is that itâ€™s random, you can do that with an instead of going rule, I think).

1 Like

The idea is I am in east 7th street. Three streets, east 1st Street, East 3rd Street and east 4th Street is north of my position.

So if I want to go to any one of them I need to go north.

Any suggestions on how to do it in another way?

But which one will you actually go to if the player types North? Is the game supposed to pick one randomly? Or is one meant to be to the NE, one to the NW?

EDIT: this is like saying that a door opens into three different rooms. That kind of thing is generally physically impossible, so Inform needs more detail to understand exactly what you want to have happen!

1 Like

When I am in 7th Street and something happens, like a crime, in east 3rd street or in east 1st street or in east 4th street I need to be able to go directly to that particular street that are all north of my current position.

I am trying to build a region map for my project with streets that needs to be connected to each other to travel around.

Well, the easy way would be to just use other directions (Northeast and Northwest as well as north). If those are already used for other locations, though, Iâ€™d think a menu would be the easiest thing â€“ so the player experience would something like this?

7th St.
>N

Where do you want to go?

1. E 3rd Street
2. E 1st Street
3. E 4th Street

> 2

E 1st Street

>

There are a couple ways to do this, but are you already using a dialogue extension or other approach to choice-based gameplay elsewhere in the game? If so, Iâ€™d just use that for this case as well.

Look if that might work.

I am using Activity-based Simple Chat by Shadow Wolf extension for dialogue.

Will your suggestion work with that, if so can you give an example please.

Will this format fill in my map as well and connect everything to each other as intended?

Iâ€™m not familiar with that extension and unfortunately donâ€™t have time right now to really figure it out and write sample code, but from a quick glance it looks like it should work â€“ just have â€śan instead of going north when the location is 7th Streetâ€ť rule which launches a chat node (canâ€™t tell whether youâ€™ll need to create a dummy NPC for this, or if thereâ€™s a way to just manually trigger a node), with quips corresponding to the three possible destinations; then a rule for giving text for each of the options that will move the player to the particular room.

This wonâ€™t fill in the map and connect everything as far as Inform is concerned â€“ again, this is physically impossible under the standard rules, where I believe only one room can be mapped as the destination of a particular exit.

I will try and see if I can get this to work.

1 Like

Itâ€™s probably simpler if you first build the map the normal way and then have a vehicle or something take you where you want to go quicker. It will help the player have a better sense of whatâ€™s going on too, if the streets can be associated with a realistic street layout.

For example, if the streets are set up as rooms this way:

East 1st Street
|
East 3rd Street
|
East 5th Street
|
East 7th Street

where a | represents a normal north-south connection, then an alternate travel method (perhaps invoked with the menu selection mentioned above) could take you directly to whichever street is needed.

Are we a police officer charged with investigating crimes as they occur? Do we have a police car we could use to DRIVE TO FIRST STREET perhaps? Or maybe a tram or streetcar we could RIDE to get there directly? There are a number of plausible ways we could move around that wouldnâ€™t compromise the mapâ€™s structural integrity.

3 Likes