Annoying SPACE - How to remove auto-indent?

This forum is the place to discuss the older ADRIFT versions 3.9 and 4.0.

Please refer to the ADRIFT 4 Manual for more information.
Post Reply
User avatar
Marno
Posts: 170
Joined: Tue Jul 16, 2002 3:18 am
Points: 10
Location: Kansas
Contact:

Post by Marno »

I am ready for my next lesson:

After presenting the Room description, the Runner then dutifully describes the object(s) in the room:
" There is also an object here." How do I get rid of the space in front of the description?

Do I use an ALR, as:

There is also|There is also
There are also|There are also

And if I do that, what unexpected consequences can I expect? :/

Mike
-- Mike

If a thing is worth living for, it ought to be worth dying for.
J. J. Guest
Posts: 2396
Joined: Mon Jun 24, 2002 9:55 pm
Points: 10
Location: London, England
Contact:

Post by J. J. Guest »

The annoying consequence would be that if you were ever to use that combination of words elsewhere in your game the ALR would remove the space between those words and the words preceding; for example:

"There are a hundred ways to get rich in Dead Moose Gulch. There are also a hundred ways to die."

would become:

"There are a hundred ways to get rich in Dead Moose Gulch.There are also a hundred ways to die."




Edited By The Amazing Poodle Boy on 1077538701
In Progress: Alias "The Magpie", The Numberless Knots of Fohat

Visit my website:
http://www.jjguest.com
for Escape from the Crazy Place and The Visitation
User avatar
Marno
Posts: 170
Joined: Tue Jul 16, 2002 3:18 am
Points: 10
Location: Kansas
Contact:

Post by Marno »

Than that's what I'll do, by gum, by crackey!
-- Mike

If a thing is worth living for, it ought to be worth dying for.
User avatar
Campbell
Site Admin
Posts: 4734
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

Post by Campbell »

Can I ask why you would want to do that? I've hardcoded that in as it made sense to me.

You can easily replace the double-space with a single by adding a __|_ (replacing underscores with spaces) in the ALR if that's the problem.
ADRIFT Developer developer.
User avatar
Marno
Posts: 170
Joined: Tue Jul 16, 2002 3:18 am
Points: 10
Location: Kansas
Contact:

Post by Marno »

Sure, Campbell. I would like to format the display like this:

A HAPPY ROOM
This is a very happy room. You feel happy feeling happy about being feeling happy, Happiness is as happiness does.

Also here is a happy face and a pink balloon.


Instead of

A HAPPY ROOM
This is a very happy room. You feel happy feeling happy about being feeling happy, Happiness is as happiness does.

Also here is a happy face and a pink balloon.




That's all. Thanks!

Mike
-- Mike

If a thing is worth living for, it ought to be worth dying for.
User avatar
Marno
Posts: 170
Joined: Tue Jul 16, 2002 3:18 am
Points: 10
Location: Kansas
Contact:

Post by Marno »

D'oh! The example stripped the spaces out! It should have been like this:

A HAPPY ROOM
This is a very happy room. You feel happy feeling happy about being feeling happy, Happiness is as happiness does.

(sp)(sp)Also here is a happy face and a pink balloon.
-- Mike

If a thing is worth living for, it ought to be worth dying for.
ralphmerridew
Posts: 2605
Joined: Fri Dec 13, 2002 11:56 pm
Points: 10
Location: Missouri
Contact:

Post by ralphmerridew »

Use the (code) tag; I believe that preserves spaces.
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
Campbell
Site Admin
Posts: 4734
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

Post by Campbell »

Marno wrote:D'oh! The example stripped the spaces out! It should have been like this:

A HAPPY ROOM
This is a very happy room. You feel happy feeling happy about being feeling happy, Happiness is as happiness does.

(sp)(sp)Also here is a happy face and a pink balloon.
Gotcha!
ADRIFT Developer developer.
User avatar
DuoDave
Posts: 1137
Joined: Mon Jun 24, 2002 2:37 am
Points: 10
Location: Melbourne, Florida
Contact:

Post by DuoDave »

I think that one issue is that when people used typewriters, we would manually justify and put 2 spaces after every period. When we changed to computers, word processors would auto-justify and visually insert extra space after a period, so people got out of the habit of typing 2 spaces after periods. You, Campbell, being in the UK, probably have maintained the habit of the double-space, wheras Americans typically have dropped it.
Post Reply