intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Aug 20, 2018 4:06 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat May 26, 2018 10:14 pm 
Offline

Joined: Wed Nov 04, 2009 9:43 pm
Posts: 10
Hello,

I have the following code that works okay when the Postures extension is turned off but does NOT when the extension is switched on:

<START CODE>
"Wingback Chair Issue" by Richard Smyth

[Include Postures by Emily Short.]

CHAPTER - Living Room

The Living Room is a room. "Room description."

The blue wingback chair is an enterable supporter in the Living Room. The description of the blue wingback chair is "The chair that has been home to your thoughts for forty years: a little threadbare, to be sure, but certainly not so much so that it belongs in the trash, as your daughter suggests."

Report entering the blue wingback chair: instead say "You sit down on the [noun].[first time][line break]Something about this chair--perhaps its familiar comfort, or the way your head fits perfectly in the niche of its wings--makes you want to doze.[only]"

test me with "sit in chair / stand / sit in chair"
<END CODE>

The Postures extension isn't even listed on the Extensions page of the inform7.com site anymore, so it must be ancient... but you can still find it on the site here:
http://inform7.com/extensions/Emily%20Short/Postures/source.html

I'm dusting this project off after its lying dormant for a number of years, and I can't remember why I included Postures. It must have been to solve some other problem, so I'd rather just create a work-around for this instance rather than just shutting it off.

I've attached the extension in case you want to give this challenge a try.

Thanks in advance for any help.

Richard


Attachments:
Postures.i7x [12.55 KiB]
Downloaded 5 times
Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 27, 2018 2:37 am 
Offline

Joined: Wed Nov 12, 2014 5:20 pm
Posts: 154
The Postures extension seems to cancel any report entering rules, replacing them with something called report taking position. This is in order to print something like "You are now seated on the bed" or "You are now reclining on the bed" instead of "You get onto the bed".

So the rule you want instead of "Report entering the blue wingback chair" is either "Report sitting on the blue wingback chair", (which will print "You are now seated on the blue wingback chair" before your "You sit down on the blue wingback chair", so you might want to remove the latter) or "Report taking position when the holder of the player is the blue wingback chair".


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun May 27, 2018 6:57 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5320
Location: Burlington, VT
By the way, the inform7.com extensions site is generally for outdated versions of extensions. It looks like Postures is available in the Public Library (go to the Extensions tab of your Inform app); if you download that version it should be the newest one.

Also, a couple of tips about posting: if you put your code in "code" tags instead of <START CODE> and <END CODE> it will show up nicely formatted. Like this:

Code:
[code]
"Wingback Chair Issue" by Richard Smyth

[Include Postures by Emily Short.]

CHAPTER - Living Room

The Living Room is a room. "Room description."

The blue wingback chair is an enterable supporter in the Living Room. The description of the blue wingback chair is "The chair that has been home to your thoughts for forty years: a little threadbare, to be sure, but certainly not so much so that it belongs in the trash, as your daughter suggests."

Report entering the blue wingback chair: instead say "You sit down on the [noun].[first time][line break]Something about this chair--perhaps its familiar comfort, or the way your head fits perfectly in the niche of its wings--makes you want to doze.[only]"

test me with "sit in chair / stand / sit in chair"
[/code]


(The tags at the beginning and end are there to show you what it looks like... and I put another set of code tags around them to get the code formatting.)

Also, though Angstsmurf seems to have explained the issue, in the future if you explain specifically what the issue is that'd be helpful; it's hard to tell from your post whether your code isn't compiling or it isn't having the desired effect or what.


Top
 Profile Send private message  
Reply with quote  
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: No registered users and 11 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