Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pressure-plates, levers, and doors.  (Read 841 times)

Aquillion

  • Bay Watcher
    • View Profile
Pressure-plates, levers, and doors.
« on: August 22, 2006, 06:57:00 pm »

What happens when you hook a pressure plate or a lever up to a door?  It doesn't seem to offer any options for the link.

What I'd like to see is the ability to choose how the door will be affected when the link is being installed.  For instance, when you're installing a link from a pressure plate to a door, you could have the following options:

* Pressure plate opens door.
* Pressure plate closes door.
* Pressure plate cycles door.

When something 'closes' a door, it sets it to tightly-shut and impassible. The cycling a door would open it if it's closed, or close it when it's open.

For a lever, the options would be:

* Lever opens door.
* Lever closes door.
* Lever cycles door.
* Door is open/closed based on lever.
* Door is closed/open based on lever.

(The last two would set the door to the appropate state based on the lever's position--open when it's on the left and closed on the right, or vice-versa.  Nothing happens to doors that are already in the correct state when the lever is pulled.)

Why all these options?  First, always setting a door to open or closed could be useful for traps.  You could have a pressure plate slam every exit from a room closed and flood it, or open a door with something nasty behind it, or both.

For levers, the option to have doors go to a specific state matching the lever's position lets you have complicated door-arrays while still being certain that they'll all go to the right place when you pull the lever, even if some goofball has been opening or closing them.

Logged
We don't want another cheap fantasy universe, we want a cheap fantasy universe generator. --Toady One

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Pressure-plates, levers, and doors.
« Reply #1 on: August 22, 2006, 06:59:00 pm »

I'm not sure if that was a rhetorical question, but I think right now they all "cycle" the door.  More options and so on are good.  And more little building blocks to make more elaborate insane things from pieces, like one of those "explore physics" learning games.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Baro

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #2 on: August 22, 2006, 07:04:00 pm »

Do dwarves set off plates, or like traps, only 'enemies' ?
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Pressure-plates, levers, and doors.
« Reply #3 on: August 22, 2006, 07:17:00 pm »

Only the enemies do.  We had been thinking about having dwarf activated star trek or one way doors for no reason, but I don't wanna deal with the path finding at this point.
Logged
The Toad, a Natural Resource:  Preserve yours today!

Arcanum

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #4 on: August 22, 2006, 08:33:00 pm »

quote:
Originally posted by Toady One:
<STRONG>I'm not sure if that was a rhetorical question, but I think right now they all "cycle" the door.  More options and so on are good.  And more little building blocks to make more elaborate insane things from pieces, like one of those "explore physics" learning games.</STRONG>

For levers, I think all you really need is a cycle function since it only activates when you tell it to anyway.  Floor plates, on the other hand, definitely need a way to make them operate in one direction only.

A problem I have is that "door closed" always corresponds to the initial state the lever is in when it is built.  That makes building nifty safety locks where you pull a lever and a floodgate opens at the same time a door closes difficult, if not impossible.

Edit:  Ok, I think I see what the OP was saying with the one-way levers.  Never mind what I said about that being unneccessary.

[ August 22, 2006: Message edited by: Arcanum ]

Logged

FunkyWaltDogg

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #5 on: August 22, 2006, 08:49:00 pm »

quote:
Originally posted by Arcanum:
<STRONG>A problem I have is that "door closed" always corresponds to the initial state the lever is in when it is built.  That makes building nifty safety locks where you pull a lever and a floodgate opens at the same time a door closes difficult, if not impossible.</STRONG>

I haven't tried linking levers to doors, but couldn't you just link the lever to the door, pull the lever, and then link the floodgate to the lever?

EDIT:  Said door where I meant lever.

[ August 22, 2006: Message edited by: FunkyWaltDogg ]

Logged

Arcanum

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #6 on: August 22, 2006, 08:53:00 pm »

quote:
Originally posted by FunkyWaltDogg:
<STRONG>

I haven't tried linking levers to doors, but couldn't you just link the lever to the door, pull the lever, and then link the floodgate to the lever?

EDIT:  Said door where I meant lever.

[ August 22, 2006: Message edited by: FunkyWaltDogg ]</STRONG>


I haven't tried doing it that particular way, but I did try creating a lever and a door, pulling the lever, then linking the lever to the door.  The relative states ended up being the same as when I didn't pull the lever first.  I assume (possibly incorrectly) that the behavior is consistent across items (including floodgates).

Logged

RPB

  • Bay Watcher
    • View Profile
    • http://rapidshare.com/files/70864746/scardagger_winter_1059.zip.html
Re: Pressure-plates, levers, and doors.
« Reply #7 on: August 22, 2006, 09:16:00 pm »

Currently, whenever you flip a switch everything goes to the same position. If you have a switch hooked up to two floodgates, one open and one closed, they will either both be open or both be closed after you throw the switch. It would definitely be nice if there was a "reversed" hookup option.

Question: What exactly does the "effect permanent" option on pressure plates do?

Logged

tourettedog

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #8 on: August 22, 2006, 10:04:00 pm »

I tried to make an airlock kind of setup with two doors and a lever (link door to lever, flip lever to open door, link other door to lever), and had the same effect.  It either opened both doors or closed both doors, rather than having one open and the other close alternately.

A 'reverse' flag on hookups would definitely be nifty.

Logged

ToxicFrog

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #9 on: August 22, 2006, 11:51:00 pm »

Ooo. I like these ideas, there's so many nasty water-related things I could do with them.

quote:
And more little building blocks to make more elaborate insane things from pieces, like one of those "explore physics" learning games.[/QB]

Except for the bit where your hunters flip out and kill everyone in the physics experiment, leaving no-one to pull the levers.
Although generally I manage to get someone to the self-destruct switch before they're all dead, providing one last experiment...
Logged

karnot

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #10 on: September 12, 2006, 12:22:00 pm »

I wanted to make a flooding deathtrap, so i linked pressure plate to door. The door is permanently open now. I guess if someone will step on a plate the door will close, but am kinda reluctant to check...
Logged

fmunoz

  • Bay Watcher
    • View Profile
    • http://www.wesnoth.org
Re: Pressure-plates, levers, and doors.
« Reply #11 on: September 12, 2006, 01:20:00 pm »

You should have added a lever to the door to so you can close it and reset the trap (not tested... maybe someone with more experience could give you better advice)
Logged

karnot

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #12 on: September 12, 2006, 03:49:00 pm »

I did, but its still impossible to test pressure plates, so...
Logged

Alanor

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #13 on: September 15, 2006, 06:54:00 pm »

I have done this before....

I set up a flood gate to block the passage into the mountain to protect me from demon incursions.  Hooked up a lever and a pressure plate to the flood gate and when the demons came through it blocked the way.
I turned on 'set to permanent' to make sure that other demons would not re-open the gate by steping again.

Sadly the traps dont work on demons.... that part of my plan failed...

Then I gathered up some troops.. opened the door with the lever and had a grand assault.

Ballistae are also great for killing demons :-D

Logged
Alanor
Blood Priest of Armok

Aquillion

  • Bay Watcher
    • View Profile
Re: Pressure-plates, levers, and doors.
« Reply #14 on: September 15, 2006, 08:39:00 pm »

Demons can just destroy floodgates.  And doors.  It helps slow them down a little, yeah, but it isn't a reliable defense.
Logged
We don't want another cheap fantasy universe, we want a cheap fantasy universe generator. --Toady One