intfiction.org

The Interactive Fiction Community Forum
It is currently Wed Jun 19, 2013 2:41 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Feb 24, 2012 10:32 pm 
Offline

Joined: Fri Feb 24, 2012 10:26 pm
Posts: 2
Is there any way to have an initial appearance of a room? I'm trying everything I can but it doesn't seem to understand what I'm telling it. I assume it's simple but I can't find anything in the documentation or online.

Thanks alot


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 11:02 pm 
Offline

Joined: Fri Feb 24, 2012 10:26 pm
Posts: 2
Code:
Darkroom is a room. "First description" .

After printing darkroom description for the first time:
   change the darkroom description to "second description".


Not working at all


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 11:04 pm 
Offline

Joined: Fri Feb 24, 2012 11:44 am
Posts: 14
Use conditional text:

Code:
Test room is a room. The description of test room is "[if item described is unvisited]This is your first visit![otherwise]Welcome back![end if] This will always be shown."


The entire verbiage of your second post is off, try something more like:
Code:
after printing the locale description of darkroom:
   now the description of the darkroom is "second description".


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 1:44 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2129
Or:

The description of test room is "[first time]This is your first visit. [only]This will always be shown."


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 10:14 am 
Offline
User avatar

Joined: Fri Jan 07, 2011 1:19 pm
Posts: 146
Location: USA
Yet another way of wording:

The description of test room is "[if unvisited]This is your first visit. [otherwise]This will always be shown."

Note I've removed "the item" because I've never ran into a situation where I had to include it.


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 10:29 am 
Offline

Joined: Fri Feb 24, 2012 11:44 am
Posts: 14
Jizaboz wrote:
Yet another way of wording:

The description of test room is "[if unvisited]This is your first visit. [otherwise]This will always be shown."

Note I've removed "the item" because I've never ran into a situation where I had to include it.

Beware, your "This will always be shown" will only be shown after the first visit.


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 12:58 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2129
Quote:
Note I've removed "the item" because I've never ran into a situation where I had to include it.


That's fine. When you refer to a bare property inside a property string ("[if unvisited]..."), it assumes you are referring to "the item described".


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 1:11 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2129
...I better add this: You can write a description containing "[if unvisited]", or "[if the item described is unvisited]".

But don't write "[if the item is unvisited]". That gets interpreted as *some* generic item, which is not at all what you want. Common mistake.


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 1:12 pm 
Offline

Joined: Sat Dec 22, 2007 9:44 pm
Posts: 182
Yet another method: say "[one of]First time.[or]Later time.[stopping] Always printed."

Question: Suppose:
- the player enters SUPERBRIEF mode (don't show descriptions after moves, even on first entry)
- the player enters then leaves the room
- the player switches to VERBOSE mode (always show descriptions after moves, even after first entry)
- the player returns to the room

What do you want to happen? (That is, it isn't the player's first time in the room, but it is the first time displaying that text.)

(If you don't want that "first time text" to be shown on the return, use "if unvisited". If you do want it to be displayed, use "one of", or "first time".)


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 1:43 pm 
Offline

Joined: Fri Feb 24, 2012 11:44 am
Posts: 14
I just want to say, that's an awesome technique. Thanks for pointing it out.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group