Ok, there’s an awful lot going on here, but I think its all related.
I’ve got three locations the player is allowed to drive to/from: Street1, Street2, and the Park. I set them up as roads and made the other locations in the game “offroad” as in Example 104, “No Relation.” I put an enterable vehicle (the Car) in Street 1.
So far, so good. The player can only drive between those three locations and can’t take the car anywhere else.
Here is where my trouble begins. I have two characters the player plays as over the course of the game. One character is described as loving the car - I don’t want him to walk around Street1, Street2 and the Park. He should only drive from place to place and refuse to walk.
The second character doesn’t know how to drive. He should be able to enter the car to find objects inside, but he should refuse to drive and insist on walking when the player tries to take him around Street1, Street2 and the Park.
(Honestly, it winds up sounding like that “One guard only tells the truth, one guard only tells lies” riddle, doesn’t it?)
Since the number of streets is limited, I can do
Instead of going from Street1 to the Park when the player is not in the car:
if the player is John:
say "Why walk when you can drive?";
if the player is Steve:
now the player is in the Park.
or similar a bunch of times, but I know there must be a more elegant, DRY solution. I tried
Instead of going from one road (called the start) to a second road (called the destination) when the player is not in the car:
if the player is John:
say "Why walk when you can drive?";
if the player is Steve:
now the player is in destination.
but the parser doesn’t like that. I know I’ve seen similar constructions for this kind of problem…I’m just having trouble constructing it myself.
Additionally, (and I swear this relates to stuff in the first question) the player eventually will acquire a raft they need to float from the Park to an island in an adjacent lake. I installed Rideable Vehicles, of course, but I’m running into two puzzlers:
-
The raft should only float between the park and the island, but the road/offroad setup from “No Relation” would allow the raft to go among all the road-designated rooms. And if I make the Island a road in the first place, it would also allow the car to drive from the park to the island. Not what I’m looking for.
-
Rideable Vehicles seems to remove the behavior where, if the player is on a supporter, they can move in a direction without using a turn on “Get off bed” or whatever. I’m looking to keep the behavior where the player goes south and the parser says “(first getting off the bed)”. I had the behavior I wanted before I included the extension, and it came back when I commented it out.
That was a lot, but it’s all sort of tangled up together in one big vehicle- and vehicle-extension knot in my head. I’m trying to learn on my own through the docs and examples (honest!) but sometimes instruction does the trick. Any help is much appreciated.