Use Left, Right, etc, not North South, Etc.

0 votes
40 views
asked 6 days ago in Authoring by anonymous

I want to use left and right instead of west and east for my "You can go west." Prompt that it gives you when you play.

2 Answers

0 votes
answered 6 days ago by hegemonkhan (161 points)
edited 6 days ago by hegemonkhan

here's a link on it (might be a bit too advanced~confusing though for you if you're new to quest and~or especially to coding):

http://docs.textadventures.co.uk/quest/guides/port_and_starboard.html


err...

for just changing the prompt... you're probably going to have to find it, and change it:

lower left corner:

Filter -> Show Library Elements -> toggle~check it to be "on"

now, in the 'tree of stuff' above (left side of screen), you'll see all of the built-in stuff, as light grey text... you're going to have to find:

~Exits

or

HandleCommand

or

Goto

or

???


or

http://docs.textadventures.co.uk/quest/scripts/request.html

or

http://docs.textadventures.co.uk/quest/guides/using_templates.html
http://docs.textadventures.co.uk/quest/elements/template.html
http://docs.textadventures.co.uk/quest/elements/dynamictemplate.html
http://docs.textadventures.co.uk/quest/elements/verb.html

0 votes
answered 4 days ago by The Pixie (121 points)

The big problem is that you need to track which way the player is looking, and to have room descriptions change, depending on that.

You are in a room with a TV in front of you, the door to the hall is behind you and a door to the kitchen to the left.
LEFT
You are in a room with a TV to your right, the door to the hall is left and a door to the kitchen ahead.
FORWARD
You are in the kitchen; the door is behind you.
LEFT
You are in the kitchen; the door is to the left.
LEFT
You are in the kitchen; the door is ahead.
FORWARD
You are in a room with a TV to the left, the door to the hall is right and a door to the kitchen behind you.

Perhaps the player types left to turn left and go that way. That would be more natural, but could be more confusing.

You are in a room with a TV in front of you, the door to the hall is behind you and a door to the kitchen to the left.
LEFT
You are in the kitchen; the door is behind you.
BACK
You are in a room with a TV to the left, the door to the hall is right and a door to the kitchen behind you.

It is certainly doable. The system HK describes is not going to work because it is not dynamic; you need exits to change as the player changes direction.
I would abandon the compass rose; that is going to be very tricking. Make your rooms with compass exits as normal, and then create new commands, LEFT, RIGHT, FORWARD and BACK, and have them calculate the compass direction, and act accordingly.

This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...