by Tdarcos » Fri Sep 14, 2012 8:57 pm
Gerynar wrote:
This seems to avoid having to move the smoke detector object around.
For what I'm doing, moving the smoke detector is a lot simpler because, all I have to do is add the (Thanks Roody, for the name!) SmokeSafe attribute to any room that I want the detector in, and it shows up. The 4 lines in the player character to see if the room is smokesafe and to move if true, plus one attribute on any room it's to be in. Much simpler than doing lots more code in the long_desc of every room.
I kind of thought of that, initially, when Pinback suggested the found_in property, except that adding the smoke detector mention in long_desc does not look the same as when the room description routine (when entering the room for the first time or with the LOOK command).
Besides, it's just a gimmick. All the smoke detector does is if you push it (or push the test button attached to it) is say that it beeps, indicating it's working.
I happened to have the Public Service Channel on the cable on in the background while I was working on the game, and it mentioned how too many places - as many as half of all homes, despite the fact your local fire station will
give you a smoke detector for free - don't have smoke detectors and a lot of people - especially children - die of smoke inhalation or are burned to death because they don't get that extra few minutes of warning telling them that there's a smoke danger.
Then I got thinking, why not put one in? Then I wanted something more elegant, instead of one detector in each room adding 30 or 40 identical smoke detectors, just have one that follows the user around to the various indoor rooms that have one. And it's nice, the rooms outside don't have it (they're not "smokesafe") and neither does the bathroom. (Exactly what's going to burn in a bathroom?)
I already did something like this in the building, it has a large air conditioner on the roof, which can only be shut off from the breaker in the <s>fuse box</s> breaker box, and then if you turn the A/C off, every room in the house without windows gives a complaint when you enter it that it's stuffy and you need to turn the A/C back on. Then once you turn it back on, it is noticably cooler.
Oh yeah, I think I'll put a fire extinguisher in the kitchen.
[quote="Gerynar"]
This seems to avoid having to move the smoke detector object around.[/quote]
For what I'm doing, moving the smoke detector is a lot simpler because, all I have to do is add the (Thanks Roody, for the name!) SmokeSafe attribute to any room that I want the detector in, and it shows up. The 4 lines in the player character to see if the room is smokesafe and to move if true, plus one attribute on any room it's to be in. Much simpler than doing lots more code in the long_desc of every room.
I kind of thought of that, initially, when Pinback suggested the found_in property, except that adding the smoke detector mention in long_desc does not look the same as when the room description routine (when entering the room for the first time or with the LOOK command).
Besides, it's just a gimmick. All the smoke detector does is if you push it (or push the test button attached to it) is say that it beeps, indicating it's working.
I happened to have the Public Service Channel on the cable on in the background while I was working on the game, and it mentioned how too many places - as many as half of all homes, despite the fact your local fire station will [i]give[/i] you a smoke detector for free - don't have smoke detectors and a lot of people - especially children - die of smoke inhalation or are burned to death because they don't get that extra few minutes of warning telling them that there's a smoke danger.
Then I got thinking, why not put one in? Then I wanted something more elegant, instead of one detector in each room adding 30 or 40 identical smoke detectors, just have one that follows the user around to the various indoor rooms that have one. And it's nice, the rooms outside don't have it (they're not "smokesafe") and neither does the bathroom. (Exactly what's going to burn in a bathroom?)
I already did something like this in the building, it has a large air conditioner on the roof, which can only be shut off from the breaker in the <s>fuse box</s> breaker box, and then if you turn the A/C off, every room in the house without windows gives a complaint when you enter it that it's stuffy and you need to turn the A/C back on. Then once you turn it back on, it is noticably cooler.
Oh yeah, I think I'll put a fire extinguisher in the kitchen.