intfiction.org

The Interactive Fiction Community Forum
It is currently Fri May 24, 2013 1:56 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 78 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
PostPosted: Wed Oct 26, 2011 6:36 pm 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
I can't find a way to make this work out right.

Code:
some ashes in Esher's stove is a fixed in place thing in Esher's stove. the description is "a pile of burnt wood from last nights fire, resulting in the ash that now resides in the belly of the stove.".
understand "ash", and "ashes" as some ashes in Esher's stove.
instead of taking some ashes in Esher's stove, say "you don't see any point in taking ash with you, as useless as that would be.".


when the player types take ash it just says they're fixed in place...

on a side not I'm starting to understand this a little better..bouncing from book to book, and having people help has been a real bonus, lol. I found an extension that's really helped me, and I'm only using it for one feature. Emily Shortls Room Description Control. That why I can make ghost items, that the players can interact with, and still have the other items in my rooms...like...have cupboards with plates in them...create a plate item with what ever name...and now the players can try to take a plate...when there are plates in the cupboard..but not get one of course, haha...

I'm not sure if that's the long way of doing things or not, but it's helping.

Also a new issue has arrised with backdrops in a region. It's saying that I'm trying to create two regions or something, lol..

Code:
Island Ocean is a backdrop. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores." Island Ocean is in The Island.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 8:39 am 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
hmm.. I seem to be getting the same problem if I try to make the backdrop into a scenery..

Code:
Island Ocean is scenery. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores." Island Ocean is in Outdoors, Path To Lighthouse, Path To Lighthouse Continued, Outside The Lighthouse,  Path To Cliffs, Path To Cliffs Continued,  The Cliffs, and Over The Cliffs.


the error message I get is that I'm trying to create a new region called Island Ocean..

---edit -----

I realize now that's porbably because scenery can only be in one place like things, but I don't understand why when I put backdrop in place of scenerey it still thinks I'm trying to create a region, lol.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 9:04 am 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
Here's a bit more insite into my backdrop problem if it helps..

This is where I tried to make the backdrop. It's at the top of all my source code..

Code:
Island Ocean is backdrop. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores." Island Ocean is in Outdoors, Path To Lighthouse, Path To Lighthouse Continued, Outside The Lighthouse, Path To Cliffs, Path To Cliffs Continued, The Cliffs, and Over The Cliffs.


Here's where I defined the region, much farther down in the source..

Code:
The Island is a region.
Outdoors, Path To Lighthouse, Path To Lighthouse Continued, Outside The Lighthouse,  Path To Cliffs, Path To Cliffs Continued,  The Cliffs, and Over The Cliffs are in The Island.
Esher's Cabin is a room.
Path To Lighthouse is west of Outdoors. Path To Lighthouse Continued is west of Path To Lighthouse. Outside Lighthouse is north of Path To Lighthouse Continued. Path To Cliffs is east of Outdoors. Path To Cliffs Continued is east of Path To Cliffs. The Cliffs is north of Path To Cliffs Continued. Over The Cliffs is north of The Cliffs.



**Edit**

I made some headway in my backdrop issue. If I declare the backdrop below where I declared the region it complies. There's a problem though...

Code:
Ocean is a backdrop.


that code placed below where the region is declared in source works...but..

Code:
Ocean is a backdrop. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores" Ocean is in The Island.


that code gives me this compile error..

Problem. You wrote '"You can't see the ocean through th [...] crashing down on the island shores" Ocean is in The Island' : but it looks as if perhaps you did not intend that to read as a single sentence, and possibly the text in quotes was supposed to stand as as a sentence on its own? (The convention is that if text ends in a full stop, exclamation or question mark, perhaps with a close bracket or quotation mark involved as well, then that punctuation mark also closes the sentence to which the text belongs: but otherwise the words following the quoted text are considered part of the same sentence.)

this is the section of code in entirety...

Code:
The Island is a region.
Outdoors, Path To Lighthouse, Path To Lighthouse Continued, Outside The Lighthouse,  Path To Cliffs, Path To Cliffs Continued, The Cliffs, and Over The Cliffs are in The Island.
Esher's Cabin is a room.
Path To Lighthouse is west of Outdoors. Path To Lighthouse Continued is west of Path To Lighthouse. Outside Lighthouse is north of Path To Lighthouse Continued. Path To Cliffs is east of Outdoors. Path To Cliffs Continued is east of Path To Cliffs. The Cliffs is north of Path To Cliffs Continued. Over The Cliffs is north of The Cliffs.

Ocean is a backdrop. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores" Ocean is in The Island.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 9:55 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2128
Location: Burlington, VT
InterFiction wrote:
Code:
Ocean is a backdrop. "You can't see the ocean through the storm, but you can hear it crashing down on the island shores" Ocean is in The Island.


that code gives me this compile error..

Problem. You wrote '"You can't see the ocean through th [...] crashing down on the island shores" Ocean is in The Island' : but it looks as if perhaps you did not intend that to read as a single sentence, and possibly the text in quotes was supposed to stand as as a sentence on its own? (The convention is that if text ends in a full stop, exclamation or question mark, perhaps with a close bracket or quotation mark involved as well, then that punctuation mark also closes the sentence to which the text belongs: but otherwise the words following the quoted text are considered part of the same sentence.)


It's just that you're missing a period after "island shores."


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 2:32 pm 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
oh, lol. Thanks..

I'm trying to create a ladder, to go from one floor of the lighthouse to the second floor. I'm not sure how to go about this...should I make it a door? Then how do I make it climbable.

Code:
Lighthouse Ladder is a scenery door. it is north of Lighhouse First Floor and south of Lighthouse Second Floor. it is open and not openable. the description is "A large metlal ladder reaching up into the second floor of the lighthouse. It looks safe enough."


I know I need to make a rule for the door..Not sure how..

I've tried this..

Code:
Instead of climbing Lighthouse Ladder:
           try entering Lighthouse Ladder.


What's the best way to go about making ladders that go from one room to another?


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 2:55 pm 
Offline

Joined: Mon Jun 09, 2008 8:58 pm
Posts: 679
Location: Seattle
Yeah, just make it a door but have the prose call it a ladder. And Instead of climbing the ladder, try going up instead. Or if you do this more than once, Instead of climbing a door... and use a when clause to test if the ladder goes up or down from the location. Staircases are the same way.

_________________
Blog at Gamasutra :: Programmer's Guide to Inform 7 :: Seattle I-F


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 3:02 pm 
Offline

Joined: Fri Jul 16, 2010 2:09 pm
Posts: 1950
If the ladder is portable, it's probably not a good idea to make it a door, since there are specific low-level rules that determine where doors appear. But you might have a door that pretends to be the ladder, which is only present when the ladder is set up. It is a bit of a tricky problem.

One way would be to have a separate scenery (or at least fixed in place) object called "the top of the ladder." You'd have to do some careful management to make sure it appeared where it needed to be. One way would be to use the Conditional Backdrops extension.

Code:
Instead of climbing the ladder:
   [this rule is listed later because it's less specific]
   say "The ladder doesn't lead anywhere right now."
   
Instead of climbing the ladder when the top of the ladder is in a room (called the destination):
   move the player to the destination.
   
Instead of climbing the top of the ladder:
   move the player to the location of the ladder.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 5:44 pm 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
Thanks guys. I appreciate the help. I'm sorry so much of this is causing me problems, lol...some examples I'm working with are from books, and they still aren't working!!

like this one isn't killing my player, lol.

Quote:
after entering Over The Cliffs:
end the game in death.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 8:24 pm 
Offline

Joined: Sat Oct 22, 2011 8:31 am
Posts: 94
This is what I've changed the code to..

Code:
after entering Over The Cliffs:
   say "Esher fell to his death.";
   end the game in death.


after everything I've read on google, and in the books I have this should kill the player, but he's certianly not dying, lol..it's funny, cuz you can go over the cliff read that the player died, and then just walk right back where ya came from, lol. If only falling off cliffs was like that.


Top
 Profile Send private message  
 
PostPosted: Thu Oct 27, 2011 8:39 pm 
Offline

Joined: Thu May 20, 2010 9:33 pm
Posts: 479
I believe the problem is that you're using "entering," which is the verb for, say, an enterable container (like a car or elevator or big cardboard box). For a room, the player gets there by "going," so here you probably want to use "going to".


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 78 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Group