intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Sep 25, 2017 1:51 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Sep 11, 2017 3:15 pm 
Offline
User avatar

Joined: Tue Dec 07, 2010 6:58 am
Posts: 179
Location: London, England
Hello all,

This might seem really obvious, but I've tried lots of ways and I can't work out what the rule is.

I want to change the description of a seated character (a character on a supporter) when either listed in the room description, or in the description of the supporter itself.

For example, I would like "On the chair is Fred." to become "Fred leans back in his chair, with his feet propped up on the table."

Many thanks,

Jason


Top
 Profile Send private message  
 
PostPosted: Mon Sep 11, 2017 3:24 pm 
Offline

Joined: Sun Oct 11, 2015 5:09 pm
Posts: 264
You can do this by writing a rule for the chair rather than the person.

Code:
Test Chamber is a room.

The chair is an enterable supporter in the Test Chamber. A man called Gordon is on the chair.

Rule for writing a paragraph about the chair when a person (called the sitter) is on the chair:
	say "[The sitter] sits on the edge of the chair, looking uncomfortable."


Top
 Profile Send private message  
 
PostPosted: Mon Sep 11, 2017 3:29 pm 
Offline
User avatar

Joined: Tue Dec 07, 2010 6:58 am
Posts: 179
Location: London, England
mikegentry wrote:
You can do this by writing a rule for the chair rather than the person.


Of course. Thank you, Mike!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: craiglocke, Yahoo [Bot] and 9 guests


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